KBom KBom - 2 years ago 285
Javascript Question

Datetimepicker maxDate not working

I am using jquery datetimepicker and trying to set the max date to be May 7th, for some reason, no matter what I put for the maxDate param, it always limits the maxDate to today (5-May-2016). Am I doing something wrong ?

Which then gives me the correct value, but the max date is always set to today and not 7-May-2016.


$('#AuditDate').datetimepicker({timepicker: false,format:'d-M-Y', maxDate: '07-May-2016', value: '05-May-2016'});

Answer Source

Try format below to match your maxDate format:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download