Home > Forum > Forms > Calendar of days off calculation

Calendar of days off calculation
0

Hi. I have a big request.
How to calculate the number of days entered in the calendar on the form, but excluding holidays - only working days
Alternatively, the second way:
How to validate the form: if in the final step date = holidays, a message will appear.
Thank you in advance for your help.

In reply to: User

Work on a single date.
It does not work when there are holidays in the time period.
e.g.: the weekend is free - when selecting from Friday to Monday, the rule does not work.
Please help
Thank you in advance

if exists
( select cal_isworkingday from calendars where CAL_WorkingDate>=START_DATE and
CAL_WorkingDate<=END_DATE and CAL_IsWorkingDay=0)
select 'Time period contain non working days'
else
select 'All days in provided time period are working days'


put values in START_DATE and END_DATE
you can use query to build validation rule.

Privacy overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognizing you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.


To see a full list of the cookies we use and learn more about their purposes, visit our Privacy Policy.