Hacker News new | ask | show | jobs
by mike 4056 days ago
see the Mozilla JavaScript docs here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

a Date can be constructed with either a number of milliseconds since the epoch or a string in a format recognised by the Date.parse() method (IETF-compliant RFC 2822 timestamps and also a version of ISO8601)