Library API
    Preparing search index...

    Function isValidDate

    • Validates whether a given year, 1-indexed month, and day constitute a valid calendar date in the Gregorian calendar.

      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