persian-date-validate
v0.1.0
Published
Validate a Persian date
Downloads
10
Maintainers
Readme
Persian Leap Year
A simple library to check if a Persian date is valid.
Installation
Install it via npm:
npm install persian-date-validate
Or yarn:
yarn add persian-date-validate
Or pnpm:
pnpm add persian-date-validate
Usage
import { isPersianDateValid } from "persian-date-validate";
console.log(isPersianDateValid(1399, 1, 1)); // true
console.log(isPersianDateValid(1399, 1, 31)); // true
console.log(isPersianDateValid(1399, 1, 32)); // false