How to get the unix timestamp in Javascript?
javascript unix timestamp from date
Math.round(new Date().getTime() / 1000).toString()
unix timestamp js
+ new Date()
get time unix js
Date.now();
//contains the timestamp in unix
Math.round(new Date().getTime() / 1000).toString()
+ new Date()
Date.now();
//contains the timestamp in unix
In this page (written and validated by A. Gawali) you learned about . What's Next? If you are interested in completing Javascript tutorial, we encourage you simply to start here: Javascript Tutorial.
Share On: |