开发者

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' }

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜