codetrix - v1.5.0
    Preparing search index...

    Function getDaysInMonth

    • Returns the number of days in the month of the given date.

      Parameters

      • date: Date

        The date object to check.

      Returns number

      Number of days in that month.

      getDaysInMonth(new Date(2025, 1, 1)); // 28 or 29 depending on year