ChronosChronos

Check Date String

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

function isDateString(value: unknown): value is string

Parameters

  • value: Value to check

Return Type

boolean - Whether valid date string

Example

playground.ts

See Also

  • isDate - Checks if a value is a Date object.
  • isDateLike - Checks if a value is date-like (Date, Day.js, Moment, Chronos, Luxon, Temporal etc.)

Last updated: Tue, May 26, 2026 11:45:10AM (UTC)

On this page