开发者

Datepicker dateFormat is not loading properly

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜