ChronosChronos

isDateString

Checks if the given value is a valid date string.

isDateString()

Checks if the given value is a valid date string.

Note

  • A value is considered a valid date string if it is a string and can be parsed by Date.parse().
  • This uses the native JavaScript date parser internally.

Signature

static isDateString(value: unknown): value is string

Parameters

  • value: Value to check

Return Type

boolean - Whether valid date string

Example

playground.ts

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

On this page