Lodash Date Methods

Index
About This Index
This page is the Lodash Date index for the tutorial track. Each row links to a full guide with syntax, examples, and FAQs.
Lodash 4.x keeps Date lean: use _.now() for a millisecond Unix timestamp. For formatting, parsing, or time zones, use native Date / Intl (or a dedicated date library).
Beginner path.
Open _.now(), compare it with Date.now(), then use it for IDs, logging, and createdAt-style values.
Syntax
How to Call a Date Method
Import now or call it on _—no arguments needed:
Lodash
import _ from "lodash";
// or: import now from "lodash/now";
const stamp = _.now();
// e.g. 1730790000000
console.log(stamp === Date.now()); // usually true (same clock)
const createdAt = { id: "post_1", at: _.now() }; Browse
Lodash Date Methods Table
All date method guides in this Lodash tutorial series (1 tutorial).
Getting Started
1 methodRead the current Unix timestamp in milliseconds.
Frequently Asked Questions
In Lodash 4.x the Date category is small: _.now() returns the current Unix time in milliseconds. Lodash does not include date parsers, formatters, or time-zone helpers.
Yes in practice. _.now() delegates to Date.now() and returns milliseconds since the Unix epoch (UTC). Use whichever reads clearer in your module.
For measuring short intervals in browsers, performance.now() is monotonic and higher resolution. _.now() is a wall-clock timestamp—better for createdAt-style values and logging.
Prefer import now from 'lodash/now' or import { now } from 'lodash-es' so your bundle only ships what you call.
Open the _.now() tutorial from the table below.
Start with _.now()
Open the timestamp guide—syntax, examples, and FAQs.
8 people found this page helpful
