Related questions
How do you get a timestamp in JavaScript?
How can I get a timestamp in JavaScript?
Something similar to Unix timestamp, that is, a single number that represents the current time and date. Either as a number or a string.
Convert normal date to unix timestamp
How can I convert normal date 2012.08.10 to unix timestamp in javascript?
Fiddle: http://jsfiddle.net/J2pWj/
I've seen many posts here that convert it in PHP, Ruby, etc... But I need to do this inside JS.
How to convert a String to long in javascript?
I have a millisecond timestamp that I need to convert from a String to long. Javascript has a parseInt but not a parseLong. So how can I do this?
Thanks
Edit: To expand on my question slightly: given that apparently …