Skip to content

isDate

isDate(value) → boolean · Type

Returns true if the value is a date (not a string representation of a date).

  • value (required): the value to test
utlx
isDate(parseDate("2026-05-01", "yyyy-MM-dd"))       // true
isDate("2026-05-01")                                  // false (string, not date)

Released under AGPL-3.0.