How to convert timestamp to date in javscript?
In this blog we will discuss on how to convert
lets suppose I have a timestamp as below.
var timestamp=(new Date()).getTime(); console.log(timestamp);
To convert above
timestamp into date we pass
timestamp as an argument to
new Date() function.
Below is an example.
Wed Jan 04 2023 11:44:32 GMT+0530 (India Standard Time)