Calendar Technical Reference
Calendar Options
CalendarOptions
Options for managing holidays, weekends and working days in AdapTable.
A working day is any calendar day that is neither a configured weekend day nor a configured holiday. Display formatting of dates is unrelated — use Format Column (or AG Grid value formatters) for that.
(Date | string)[] | ((baseContext:BaseContext) => (Date | string)[] | undefined)
Public / bank holidays for the current user (calendar days only).
These are distinct from weekends: a Saturday is not a holiday unless it is
also listed here. Entries may be Date instances or ISO date strings
(yyyy-MM-dd).
undefined
number[]
Days of the week treated as weekend (non-working), using JavaScriptDate.getDay() values: 0 = Sunday … 6 = Saturday.
[0, 6]
number
First day of the week for week-related Expression Functions
(WEEK, START_OF_WEEK, IS_THIS_WEEK), using JavaScriptDate.getDay() values: 0 = Sunday … 6 = Saturday.
Independent of .
0
Find Out More
See Holiday Calendars for how holidays, weekends and week start are supplied
Calendar API
CalendarApi
Calendar, holiday and working-day helpers.
Working days are derived from calendarOptions: a day is working when it is
not a configured weekend day and not a configured holiday.
Date
Returns the next working day after from (defaults to today).
Never returns from itself.
Date
Returns the previous working day before from (defaults to today).
Never returns from itself.
number
First day of the week for week-number / start-of-week Expression Functions
(calendarOptions.weekStartsOn, default 0 = Sunday).
boolean
True when the date is in the configured holiday list.
Weekends are not holidays unless also listed in calendarOptions.holidays.
boolean
Returns true if both dates are the same calendar day (time ignored).
boolean
Returns true if the given date is today
boolean
Returns true if the given date is tomorrow
boolean
True when the date falls on a configured weekend day
(calendarOptions.weekendDays, default Saturday/Sunday).
boolean
True when the date is neither a weekend day nor a configured holiday.
boolean
Returns true if the given date is yesterday