@hebcal/core
    Preparing search index...

    Function getHolidaysOnDate

    • Returns an array of holiday Events that occur on the given date, or undefined if no holidays occur that day.

      When il is omitted, both Diaspora-only and Israel-only events are returned (e.g. on the second day of a Yom Tov, both "Pesach II" for Diaspora and any Israel-only events). Pass true or false to filter to a single schedule.

      Parameters

      • date: number | HDate | Date

        Hebrew Date, Gregorian date, or absolute R.D. day number

      • Optionalil: boolean

        use the Israeli schedule for holidays

      Returns HolidayEvent[] | undefined

      import {getHolidaysOnDate, HDate, months} from '@hebcal/core';
      const events = getHolidaysOnDate(new HDate(15, months.NISAN, 5784), false);
      events?.map(ev => ev.getDesc()); // ['Pesach I']