Optional year: string | numberThe year of the date.
Optional month: string | numberThe month of the date.
Optional day: string | numberThe day of the date.
Optional hour: string | numberThe hour of the date.
Optional minute: string | numberThe minute of the date.
Optional second: string | numberThe second of the date.
Optional millisecond: string | numberThe millisecond of the date.
Will throw an error if the date is not valid.
assertValidDate(2021, 12, 31, 23, 59, 59, 999);;
//=> true
assertValidDate(2021, 13, 31, 23, 59, 59, 999);;
//=> throws an error
Generated using TypeDoc
Asserts that the provided date parameters form a valid date.