Last Updated: February 25, 2016
·
745
· netzzwerg

Date to Integer

Date as String Value:

new Date()
// Date {Fri Nov 23 2012 21:51:02 GMT+0100 (CET)}

Date as Integer Value

+new Date()
// 1353703862519

1 Response
Add your response

Thanks! Might be fair to mention that the value is in milliseconds since epoch, unlike the seconds you might be used to.

over 1 year ago ·