Bad parse. Still creates a Date object (Invalid Date).
Type check._.isDate(bad) → true.
Validity.getTime() is NaN for Invalid Date.
Pair them. Use _.isDate(d) && !isNaN(d.getTime()) for a real instant.
Compatibility
Browser & Runtime Support
_.isDate ships with Underscore.js (1.x). It runs anywhere Underscore runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install underscore.
✓ Stable · Underscore 1.x
_.isDate()
Available in [email protected] (UMD / ESM). Works in evergreen browsers and current Node LTS when Underscore is loaded.
100%With Underscore 1.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
_.isDateUnderscore 1.x+
Bottom line: Safe for production once Underscore is on the page or in your bundle. Not a native browser API — load Underscore first. Prefer a pinned CDN version (e.g. [email protected]).
Frequently Asked Questions
_.isDate(object) returns true only when the value is a Date object — including Invalid Date. ISO strings, timestamps such as 100 or Date.now(), and plain objects return false.
_.isDate(new Date()) returns true. The docs pick a real Date instance on purpose: that is the type the helper looks for.
No. "2026-08-17" is still a string. Parse it with new Date(...) first if you need a Date object, then call isDate on the result.
Yes. new Date("not a date") is still a Date object, so isDate is true. Pair it with isNaN(d.getTime()) when you need a real calendar instant.
typeof new Date() is "object", so typeof is too broad. instanceof Date usually agrees in the same window. Underscore uses the [object Date] tag, which is more consistent across iframes than instanceof.
No. It is a stable Underscore 1.x helper used to decide whether a value is a Date before you call getTime, toISOString, or other Date methods.