Skip to content

Instantly share code, notes, and snippets.

@chmanie
Created March 19, 2014 21:33
Show Gist options
  • Select an option

  • Save chmanie/9651878 to your computer and use it in GitHub Desktop.

Select an option

Save chmanie/9651878 to your computer and use it in GitHub Desktop.
function mergeDate(date, time) {
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), time.getHours(), time.getMinutes(), time.getSeconds());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment