Is today a working day

Is there a way of determining if today is a working day via the “default calendar”?

I want to display a message to say something like “Timer is active, but not running as today is not a working day” e.g. weekend or bank holiday.

Ideally as a composite?

Thanks
Jonathan - East Hampshire District Council

Hi Jonathon
Note sure if this will help much but it might have a way to find out if the the current day is a working day…

If I add a composite, for the current date (Monday 19th May) for example…
User Working Days Plus 7
Then I get the following as there is a bank holiday coming up, which excludes 3 days and effectively adds 3 days to the result…
Thu, 29 May 2025

So it might be possible to add some additional logic to the above…

For instance you could have a couple of composites, one comparing working days and the other all days and use a comparison to see whether the results are equal,

for instance take yesterday’s date and add one working day as one composite
then take yesterday’s date and add a normal day…

If both are equal then today is a working day, if not then today is likely not a working day.

For the above you might need several composites…
Today’s date
Yesterday: Today’s date - 1
Yesterday + 1 day
Yesterday + 1 working day

A subset to compare
Yesterday + 1 day “Equal to” Yesterday + 1 working day

If yes display “Get back to work”
If no display [Your intended message]

1 Like

Code Studio also offers a method for checking if a date is a working date, so you could create a Presenter that shows the message you describe. See the example in CS:

Bob saves the day once again! Thanks