Friday, January 2, 2009

[jQuery] Re: Change the date format of jquery calendar

What version are you using? Also, more of your code (an entire simplified test page ideally) would help. Also note, there is a dedicated list for questions about jQuery UI plugins[*]

http://groups.google.com/group/jquery-ui

- Richard

[*] http://rdworth.org/blog/2008/10/jquery-plugins-and-jquery-ui/

On Fri, Jan 2, 2009 at 3:44 AM, Praveen <praveen.python.plone@gmail.com> wrote:

Hi all i have one jquery calendar

$('selector').datePicker(); which is giving me in dd/mm/yyyy

i want to change this format to yyyy-mm-dd

i tried with
$.datePicker.setDateFormat('ymd','-');

error: $.datePicker is undefined

and tried with this code

$("#sd").datepicker.setDateFormat('ymd','-');

error: $("#sd").datepicker.setDateFormat is not a function



No comments: