开发者

Datepicker dateFormat is not loading properly

开发者 https://www.devze.com 2023-04-11 11:32 出处:网络
I am trying to load my jQuery UI datepicker field with the FULL date shown. So I do the following: $(\"#reminderDate\").datepicker({ dateFormat: \"DD, d MM, yy\" });

I am trying to load my jQuery UI datepicker field with the FULL date shown. So I do the following:

$("#reminderDate").datepicker({ dateFormat: "DD, d MM, yy" });

However, when the page first loads, the the date appears in default format mm/dd/yyy, but after开发者_JS百科 I select another date it changes to full format. What am i missing?


Whatever server side language you're using to output the value of that <input> element needs to format the date so that it matches the format you're using in the date picker. The datepicker won't auto-format the value that's originally set against the <input> element.

0

精彩评论

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

关注公众号