datepicker max date
So I have a date picker and I want to get back a max date. I have somthing like this
$( "#datepicker" ).datepicker({ minDate: -20开发者_如何学Go, 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.
I am pretty sure this is what I used: { maxDate: '+2m +2w +4y' }
精彩评论