The year to be checked.
A boolean indicating whether the year is valid or not.
This function will return true if the year is a positive integer, false otherwise.
isValidDateYear(2020); ;
//=> true
isValidDateYear(-2020);;
//=> false
isValidDateYear(2020.5);;
//=> false
Generated using TypeDoc
Checks if the provided year is a valid date year.