_.isDate is a Lodash Lang helper (since 0.1.0). It runs anywhere Lodash runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install lodash. Date itself is a core ECMAScript built-in.
✓ Stable · Lodash 0.1.0+
_.isDate()
Available in [email protected] full builds and the lodash/isDate modular import. Works in evergreen browsers and current Node LTS when Lodash is installed.
100%With Lodash 4.x
Google ChromeSupported · Desktop & Mobile
Full support
Mozilla FirefoxSupported · Desktop & Mobile
Full support
Apple SafariSupported · macOS & iOS
Full support
Microsoft EdgeSupported · Chromium
Full support
Internet ExplorerNo native support · Use a polyfill
Polyfill
OperaSupported · Modern versions
Full support
Samsung InternetSupported · Android
Full support
BunSupported · JavaScript runtime
Supported
DenoSupported · JavaScript runtime
Supported
Node.jsSupported · Server runtime
Supported
Android WebViewSupported · Modern WebView
Full support
_.isDateLodash 0.1.0+
Bottom line: Safe for production once Lodash is loaded. Prefer import isDate from "lodash/isDate" for smaller builds.
Frequently Asked Questions
_.isDate(value) returns true if value is classified as a Date object, otherwise false. It does not parse strings or numbers into dates.
No. "2024-06-01" is still a string. Parse with new Date(...) first if you need a Date object.
No. An Invalid Date from new Date("???") is still a Date object, so _.isDate returns true. Check Number.isNaN(d.getTime()) for real instants.
Both usually agree. Lodash uses the object’s internal tag, which can be more consistent across realms (iframes) than instanceof alone.
No. Numbers stay numbers. Use new Date(ms) if you need a Date instance first.
Use import isDate from "lodash/isDate" or require("lodash/isDate") for tree-shaking. Full build: import _ from "lodash" then _.isDate.