limedigital
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Hi @brozra,
Thanks for the detailed explanation. I have decided to take the Javascript method to tackle this issue.
Its works perfectly. Thanks a ton.
Just a last query, can we tweak this script to disable sundays only? And both saturday and sunday in the calendar? And set date format to dd/mm/YYYY.
I tried changing the script, but no luck! Would be glad if you could assist me here please. My working script is as below:
Once again thank you so much for your time. I was stuck with this for a week now.
<script type="text/javascript"> var dateControl = document.getElementById('date_required'); let current_datetime = new Date(); let minDateMonth = current_datetime.getMonth() + 1; if (minDateMonth < 10) { minDateMonth = "0"+minDateMonth; } let minDate = current_datetime.getFullYear() + "-" + minDateMonth + "-" + (current_datetime.getDate() + 3); dateControl.setAttribute("min",minDate); </script>Link to the working calendar is here.
- This reply was modified 5 years, 10 months ago by limedigital.
- This reply was modified 5 years, 10 months ago by limedigital.
- This reply was modified 5 years, 10 months ago by limedigital.
- This reply was modified 5 years, 10 months ago by limedigital.
- This reply was modified 5 years, 10 months ago by limedigital.
- This reply was modified 5 years, 10 months ago by limedigital.
Viewing 2 replies - 1 through 2 (of 2 total)