Date picker starting from future date in working days

In this demo we want to use Twig to calculate first available date from the next 3 working days

Twig pseudocode

You can change 3 and 5 (3+2) with wanted delay.

				
					2024-11-27
				
			

Tutorial

We will use Dynamic Tag Twig to generate dynamically the Min Date.

Checking current days of the week (ISO 8601) we will sum 3 or 5 days from current date:
1 Mon
2 Tue
3 Wed
4 Thu
5 Fri
6 Sat
7 Sun

Today is: 7 Sunday