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). Operates purely on integer arithmetic with zero Date allocations.

      Parameters

      • year: number

        The full calendar year (e.g. 2026)

      • month: number

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

      • isJulian: boolean = false

      Returns number

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