Skip to content

Instantly share code, notes, and snippets.

@kutyel
Created August 1, 2016 09:20
Show Gist options
  • Save kutyel/32e8dbe9ad424d5250aa2eefa8d06252 to your computer and use it in GitHub Desktop.
Save kutyel/32e8dbe9ad424d5250aa2eefa8d06252 to your computer and use it in GitHub Desktop.
Diff between dates (in days)
(new Date(2016, 7, 17).getTime() - new Date(2016, 2, 17).getTime()) / 1000 / 3600 / 24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment