I have timestamp and want to convert it to DateTime. How can I do this in JS? i.e. Timestamp -
59080993
Want result as -
2016-05-30T12:10:30.407+05:30
I have timestamp and want to convert it to DateTime. How can I do this in JS? i.e. Timestamp -
59080993
Want result as -
2016-05-30T12:10:30.407+05:30
new Date(timestamp).toISOString()
I guess your timestamp is wrong. Because:
`new Date(59080993) //=> Thu Jan 01 1970 18:24:40 GMT+0200`