Validates whether a given year, 1-indexed month, and day constitute a valid calendar date in the Gregorian calendar.
Pure integer arithmetic with zero Date allocations.
Parameters
year: number
The full calendar year (e.g. 2026)
month: number
The 1-indexed month number (1..12)
day: number
The 1-indexed day of the month (1..31)
Returns boolean
true if the year, month, and day represent a valid date, otherwise false
Validates whether a given year, 1-indexed month, and day constitute a valid calendar date in the Gregorian calendar. Pure integer arithmetic with zero Date allocations.