Help / WLanguage / WLanguage functions / Standard functions / Date and time functions
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Indicates that a day (or a list of days) is a public holiday. This public holiday can correspond, for example, to a fixed date in a year, a regular date every year or a constant.
Remark: These public holidays will be used:
  • by the Calendar control.
  • WEBDEV - Server codePHP by the Organizer control.
  • WEBDEV - Server codePHP by the Scheduler control.
To find out whether a day is a public holiday through programming, simply use BankHoliday.
// Delete all public holidays
// Initialize the 11 public holidays common to the French regions and territories
BankHolidayAdd("0101") // 1st of January
BankHolidayAdd(bhEasterMonday) // Easter Monday
BankHolidayAdd("0501") // 1st of May
BankHolidayAdd("0508") // 8th of May
BankHolidayAdd(bhAscensionDay) // Ascension day
BankHolidayAdd(bhWhitMonday) // Whit Monday
BankHolidayAdd("0714") // 14th of July
BankHolidayAdd("0815") // 15th of August (Assumption)
BankHolidayAdd("1101") // All Saints' Day
BankHolidayAdd("1111") // 11th of November
BankHolidayAdd("1225") // Christmas
// Add 2 additional public holidays for the regions of Moselle and Alsace
BankHolidayAdd("1226" + CR + bhGoodFriday)
BankHolidayAdd(<New public holidays>)
<New public holidays>: Character string or Character String constant
Can correspond to:
  • A 4-digit date (in MMDD format) to define a fixed public holiday (e.g., "1225" for Christmas).
  • An 8-digit date (in YYYYMMDD format) to define a public holiday for a specific year (e.g., "20080808" for August 8th, 2008).
  • A date in the following format: <Month>_<Week number>_<Week day number>. For example: 11_2_3 for the 2nd Wednesday of November.
  • One of the following constants:
    bhAscensionDayAscension day.
    Remark: The corresponding date corresponds to Easter + 39 days.
    bhEasterDayEaster Sunday.
    Remark: The corresponding date can be returned by Easter.
    bhEasterMondayEaster Monday.
    Remark: The corresponding date corresponds to Easter + 1 day.
    bhGoodFridayGood friday.
    Remark: The corresponding date corresponds to Easter - 2 days.
    bhWhitMondayWhit Monday.
    Remark: The corresponding date corresponds to Easter + 50 days.
  • a combination of the above-mentioned possibilities. The days found in this list must be separated by a CR character (carriage return).
  • This function is used to customize the application according to the country and/or to the local regulations.
  • This function has a global effect and must be used at the beginning of the application.
  • BankHolidayAdd can be used after the call to BankHoliday.
Business / UI classification: Neutral code
Component: wd290obj.dll
Minimum version required
  • Version 14
This page is also available for…
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help