getHolidaysOn
function getHolidaysOn(date, options?): Holiday[];Defined in: holidays.ts:301
Returns the public holidays that fall on a date.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
date |
string | Date |
A Date (local calendar date) or YYYY-MM-DD string |
options? |
HolidayOptions |
Same options as getPakistanHolidays |
Returns
Section titled “Returns”Holiday[]
Holidays on that date; empty if it is not a public holiday