Monday 25 June 2012

How to Change the Date Format in DatePicker on JQuery UI

I was scratching my head over the call to DatePicker Function in JQuery UI - to change the date format.

the call to the function was this

[code]$(function() {
   
        $( ".datepicker" ).datepicker();
       
    });[/code]




 Change to

[code]

    $(function() {

$( ".datepicker" ).datepicker({ dateFormat: 'dd/mm/yy' });    });


[/code]


No comments: