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 string
- How to send message to client from websocket server
- How to POST JSON data
- How to get UTC timestamp
- How to pipeline streams
- How to set content type in HTTP server
- How to run Node.js script in background
- How to post url-encoded data
- How to init Node.js project with NPM
- How to get path dirname
See more codes...