开发者

jquery date picker locale setting not working

开发者 https://www.devze.com 2023-01-05 23:39 出处:网络
the documentation seems si开发者_开发百科mple enough, but in practice, this feature is not working!

the documentation seems si开发者_开发百科mple enough, but in practice, this feature is not working!

I need the date to be in dd/mm/yyyy format.

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

Can you help?

Currently the date is outputted as mm/dd/yyyy.

Many thanks


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

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

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

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

精彩评论

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