@hebcal/hdate
    Preparing search index...

    Function daysInMonth

    • Number of days in Hebrew month in a given year (29 or 30).

      Most months have a fixed length. Cheshvan and Kislev vary to absorb the 353/354/355-day variation of the Hebrew year (see longCheshvan and shortKislev), and Adar I has 30 days in a leap year but 29 in a common year.

      Parameters

      • month: number

        Hebrew month (e.g. months.TISHREI)

      • year: number

        Hebrew year

      Returns number

      an integer 29-30

      import {daysInMonth, months} from '@hebcal/hdate';
      daysInMonth(months.CHESHVAN, 5769); // 29
      daysInMonth(months.KISLEV, 5769); // 30