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.

Did you know that with WEBCON you can automate virtually any process? Even baking cookies 🍪
 
Speaking of cookies: we use the ones that are essential for our website to function properly, as well as additional ones that help us customize our content to your preferences. If you don’t mind cookies, click Accept. If you want to learn more, explore settings.
Settings