Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How get a timestamp in JavaScript?

Short & Snazzy:
+ new Date()
A unary operator like plus triggers the valueOf method in the Date object and it returns the timestamp (without any alteration).
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #timestamp
ADD COMMENT
Topic
Name
3+9 =