Jalali Date Validation
Strict mathematical validation for Persian dates. Validates leap years and exact month lengths without relying on heavy external libraries.
Validation in Forms
Using this schema prevents impossible dates from passing validation (e.g., rejecting the 30th of Esfand in non-leap years).
schema.ts
typescript
Pure Functions
Independently verify a date's validity and extract precise details such as its leap year status.
pure-functions.ts
typescript