getAll() → {object}
Retrieves all available bank holidays for England and Wales, Scotland and Northern Ireland.
Returns:
object
Object with bank holiday details.
Example:
var bankHolidays = connectors.verjio.ukbankholidays.getAll()
bankHolidays.events.forEach(event => {
tables.bankHolidays.insertRow();
tables.bankHolidays.name.value = event.title;
tables.bankHolidays.date.value = event.date;
});
getRegion(region) → (nullable) {object}
Retrieves all available bank holidays for the specified region.
Parameters:
Returns:
object
Object with bank holiday details. Returns null if the region is not valid.
Example:
// Get bank holidays for England and Wales
var bankHolidays = connectors.verjio.ukbankholidays.getRegion(
connectors.verjio.ukbankholidays.regions.ENGLAND_WALES
);
bankHolidays.events.forEach(event => {
tables.bankHolidays.insertRow();
tables.bankHolidays.name.value = event.title;
tables.bankHolidays.date.value = event.date;
});
getYear(year, regionopt) → (nullable) {object}
Retrieves bank holidays for the specified year. The region can also be specified using the optional second parameter.
Parameters:
| Name |
Type |
Attributes |
Description |
| year |
string |
|
Year to retrieve bank holidays for in 'YYYY' format, e.g. '2024'. Defaults to the current year.
|
| region |
UKBankHolidayLookup.UKBankHolidaysRegion |
<optional> |
Optional region to filter bank holidays by.
|
Returns:
object
Object with bank holiday details. Returns null if the region is specified and not valid.
Examples:
// Get bank holidays for the year of 2025 in Scotland
var bankHolidays = connectors.verjio.ukbankholidays.getYear(
2025,
connectors.verjio.ukbankholidays.regions.SCOTLAND
);
// Get bank holidays for the current year in all regions
var bankHolidays = connectors.verjio.ukbankholidays.getYear();