Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get the timestamp in javascript

const currentTimeInSeconds=Math.floor(Date.now()/1000); //unix timestamp in seconds
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #timestamp #javascript
ADD COMMENT
Topic
Name
3+1 =