ChronosChronos

isValidDate

Checks if the given value is a valid Date object.

isValidDate()

Checks if the given value is a valid Date object.

Note

Internally uses instanceof Date to check if the given value is a valid Date object.

Signature

static isValidDate(value: unknown): value is Date

Parameters

  • value: Value to check

Return Type

boolean - Whether valid Date

Example

playground.ts

Last updated: Thu, May 21, 2026 07:12:18AM (UTC)

On this page