nodejsHow to get current timestamp
Usage example
const ts = Date.now();
console.log(ts);
output
1660209069059
Related
More of Nodejs
- How to read stream to Buffer
- How to get UTC timestamp
- How to post url-encoded data
- How to set content type in HTTP server
- How to make GET request
- How to exit process with success
- How to convert unix timestamp to local date/time
- How to write file
- How to get hostname
- How to get format date in "yyyy-mm-dd"
See more codes...