I am trying to convert milliseconds from database to human readable format
I know that my timestamp in DB is in UTC as of today's date.
When I plug it into momentJS, I get: 1969-12-31T19:00:00-05:00
Below is my code:
return moment(val).format();
Via Active questions tagged javascript - Stack Overflow https://ift.tt/pqNtFsl
Comments
Post a Comment