Toolbox-XToolbox-X
GuardsDate-Time Guards

Check Date Object

Validates if a value is a Date object.

isDate

Validates if a value is a Date object. Properly handles Date instances across different execution contexts.

Signature

isDate(value: unknown): value is Date

Examples

playground.ts

Use Cases

  • Date parsing validation
  • Serialization/deserialization
  • Form input handling
  • API response validation

See Also

  • isDateLike - Checks if a value is date-like (Date, Day.js, Moment, Chronos, Luxon, Temporal etc.)
  • isDateString - Checks if a string is a valid date string in 'DD-MM-YYYY' format.

Last updated: Tue, May 26, 2026 11:38:30AM (UTC)

On this page