Search code snippets, questions, articles...

Lodash - Get current timestamp in milliseconds

The Lodash now() function can be used to get the current timestamp. It returns the timestamp in milliseconds. See the below code examples to understand.
const timestamp =;

Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool



Try it yourself function

The function is an in-built function of Lodash Library and it is mainly used to get the current timestamp. The Lodash library is used to manipulate data in the form of arrays or objects.

Was this helpful?