demo

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.

				
					{%set days = '+3 day'%}{%if 'now'|date('N') in [3,4,5]%}{%set days = '+5 day'%}{%endif%}{{days|date('Y-m-d')}}
				
			

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: 3 Wednesday