Library API
    Preparing search index...

    Function getDaysInMonth

    • Returns the total number of days in the specified month of a given year (1-indexed month, 1..12).

      Parameters

      • year: number

        The full calendar year (e.g. 2026)

      • month: number

        The 1-indexed month number (1 for January through 12 for December)

      Returns number

      Total number of days in that month (28..31)