Skip to content

getHolidaysOn

function getHolidaysOn(date, options?): Holiday[];

Defined in: holidays.ts:301

Returns the public holidays that fall on a date.

Parameter Type Description
date string | Date A Date (local calendar date) or YYYY-MM-DD string
options? HolidayOptions Same options as getPakistanHolidays

Holiday[]

Holidays on that date; empty if it is not a public holiday