isUsDateValid
Mask
stable
Validates an 8-digit unmasked string representing a US calendar date (MMDDYYYY) against real Gregorian rules including leap years.
API
Signature
Signature TypeScript complète, extraite du fichier util.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- unmaskedrequisstring
- The raw 8-digit string extracted from the mask (MMDDYYYY, no separators). Any other length or non-digit content returns false.
API
Valeur de retour
La valeur retournée par cet util.
- true when the string encodes a real calendar date in MMDDYYYY format; false otherwise.
Usage
Exemples
Extraits de code prêts à coller.
Valid and invalid US dates