Appointment date with limited choice

A calendar that excludes the following things: weekends, holidays (which are added manually), today's day and if it is after 3:30 PM, tomorrow's day as well.


This is the configuration, where there is defined the rules to leave only wanted dates available.

Twig code for the Min Date

{% if 'now'|date('U') > 'now'|date('Y-m-d 15:30:00')|date('U') %}{{'+2 day'|date('Y-m-d')}}{% else %}{{'+1 day'|date('Y-m-d')}}{% endif %}