Is Date weekend/holiday

What it does

Tests wether a date is a weekend date and/or a holiday (based on those that are input via the designer).

Available from version 11968.

First setup

Just make sure that you maintain the list of holidays (in the designer).

How to invoke

Make an http request to

main?command=com.tsnocode.codeunit.frontend.TestDate&Date=[DATE]

This will return a json object.

{
  "date": "2026-05-14",
  "isHoliday": true,
  "isWeekend": false,
  "error": false,
  "holidayName": "Kristihimmelfart"
}

If error is true, then a message (msg) will also be available.
If isHoliday is true, then a holidayName should also be returned. (As of version 12007)

Developer info


Revision #3
Created 7 May 2026 13:12:57 by Theis Villumsen
Updated 13 May 2026 09:42:20 by Theis Villumsen