Invalid jquery date picker language parameter

the documentation seems simple enough, but in practice this function does not work!

I need a date in dd / mm / yyyy format.

$(function() { $("#txt_date").datepicker($.datepicker.regional['en-GB']); }); 

You can help?

Currently, the date is displayed as mm / dd / yyyy.

Many thanks

+7
jquery jquery-ui-datepicker
source share
1 answer

You need to create language files if you need to use Localization.

See this post http://docs.jquery.com/UI/Datepicker/Localization

If you need only one date format, dd / mm / yyyy, just use this

 $( "#txt_date" ).datepicker({ dateFormat: 'dd/mm/yy' }); 
+8
source share

All Articles