开发者

How to change date format of a jQuery Date Picker plugin (Jonathan Leighton Input Date)

I am using Jonathan Leighton's Date Picker Plugin (Input Date) URl : http://jonathanleighton.com/projects/date-input

The problem is, The selected date is 开发者_StackOverflowin the format "16 Aug 2010"

I want it to be in the format of "2010-08-16" i..e yyyy-mm-dd

Also, is it possible to include timings as well.. i..e set both date and time using this plugin??

Please help me out guys.


The very page you linked to has an example how to format the date in YYYY-MM-DD:

http://jonathanleighton.com/projects/date-input#date-formatting


I would suggest you to use jQuery UI's datepicker. It has more options (also date format) and callbacks. This datepicker has something like timepicker plugin too: http://blog.w3visions.com/2009/04/date-time-picker-with-jquery-ui-datepicker/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜