Here’s my timestamp microservice project:
- If we go back in time to a date with a negative year, using
date.toLocaleDateString()will throw away the minus sign in the year.
- unixdate is seconds since a certain origin. However, to build a date in js we can use
new Date(<milliseconds since a certain origin>)
So, please leave your feedback and let me know if you find any bugs.