Pro tip: While in Java getTime() on a date object returns the UTC milliseconds since 1st of January 1970, in JavaScript it returns the timezone specific value. If you want to get the UTC timestamp, you have to call Date.UTC()

Sign in to participate in the conversation
Sheogorath's Microblog

This instance is the microblog to my blog. You'll probably find more recent content here while finding more elaborated content on the blog. Impressum / Datenschutz / Privacy