isIsoDateValid
Mask
stable
Validates an 8-digit unmasked string representing an ISO calendar date (YYYYMMDD) against real Gregorian rules including leap years.
API
Signature
Full TypeScript signature sourced from the util file.
API
Parameters
Input parameters accepted by this util.
- unmaskedrequiredstring
- The raw 8-digit string extracted from the mask (YYYYMMDD, no separators). Any other length or non-digit content returns false.
API
Return value
The value returned by this util.
- true when the string encodes a real calendar date in YYYYMMDD format; false otherwise.
Usage
Examples
Ready-to-paste usage snippets.
Valid and invalid ISO dates