Hi Guys
I have got a datepicker on a site and have set the minDate to be tomorrow.
<script>
$(function() {
$( "#delDate" ).datepicker({
dateFormat: 'd MM yy',
changeMonth: true,
changeYear: true,
minDate: "+1D",
constrainInput: true,
beforeShowDay: noWeekendsOrHolidays
});
});
</script>
What I want to do is set the minDate to +2 if the time is after 5pm, anybody got any guidance on how to achieve this.