So I have a date picker and I want to get back a max date. I have somthing like this
$( "#datepicker" ).datepicker({ minDate: -20, maxDate: "+1M +15D" });
how can I get the maxDate value formatted in MM/DD/YYYY?
Thanks for your help guys
$('#datepicker').datepicker( "option", "dateFormat", 'mm/dd/yyyy' );
And then specify your maxdate
in mm/dd/yyyy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With