Skip to content

Instantly share code, notes, and snippets.

@deedubs
Forked from fbuchinger/gist:1307476
Created October 23, 2011 15:37
Show Gist options
  • Save deedubs/1307483 to your computer and use it in GitHub Desktop.
Save deedubs/1307483 to your computer and use it in GitHub Desktop.
datefromarray
dateFromArray = (dateArr) ->
[year, month, day , hour, minute, second, millisecond] = dateArr
new Date year, month || 0, day || 0, minute || 0, second || 0, millisecond || 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment