So I am using jQuery DateTimePicker, currently I have the following settings:
jQuery(document).ready(function($) {
jQuery.datetimepicker.setLocale('en');
jQuery('#datepicker').datetimepicker({
beforeShowDay: $.datepicker.noWeekends,
format: 'd/m/Y H:i a',
minDate: 0,
minTime: 0,
step: "30",
allowTimes:[
'09:00', '09:30', '10:00', '10:30', '11:00', '11:30', '12:00', '12:30',
'13:00', '13:30', '14:00', '14:30', '15:00', '15:30', '16:00', '16:30', '17:00'
]
});
});
As you can see, you can't select a date or time in the past and the time selection is only 9-5pm on weekdays...
This issue I have is that if I just select today's date, it put's in the date with the current time stamp, I need to somehow round this up to the next 30 minute increment or make the time selection required as well as the date.
Any ideas?