Skip to content

Instantly share code, notes, and snippets.

@twysto
Last active August 29, 2015 14:08
Show Gist options
  • Save twysto/3e6a0679447c2216e7b7 to your computer and use it in GitHub Desktop.
Save twysto/3e6a0679447c2216e7b7 to your computer and use it in GitHub Desktop.
[Javascript] One line "DateTime to Timestamp"
var timestamp = Date.parse("1999-12-31 00:00:00") / 1000;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment