Hi,
I am trying to get the date selector field to prevent a user selecting weekends and that they must give 24 hours notice based on working days.
I have added the code to Extra Params :
data-open_days=[1,2,3,4,5]
data-start_date=<?php $d = new DateTime('tomorrow'); echo $d->format("d-m-Y"); ?>
This has prevented weekends but still allows them to select the past and the same day. Can anyone help on what I am missing.
Thanks a lot,
P
I am trying to get the date selector field to prevent a user selecting weekends and that they must give 24 hours notice based on working days.
I have added the code to Extra Params :
data-open_days=[1,2,3,4,5]
data-start_date=<?php $d = new DateTime('tomorrow'); echo $d->format("d-m-Y"); ?>
This has prevented weekends but still allows them to select the past and the same day. Can anyone help on what I am missing.
Thanks a lot,
P