The day of the month. Must be an integer.
The month of the year. Must be an integer.
Optional
year: numberThe year. Optional parameter. If not provided, the function will not check for leap years.
A boolean indicating whether the day is valid for the given month and year.
isValidDateDay(31, 1, 2000);
//=> true
isValidDateDay(31, 2, 2000);
//=> false
isValidDateDay(29, 2);
//=> true
Generated using TypeDoc
Checks if the given day is a valid day of the month.