开发者

show monthNameShort in datepicker

开发者 https://www.devze.com 2023-02-13 05:11 出处:网络
I\'m using datepicker of开发者_如何学Go jquery ui now it show the month names like \"March\" I want show them in monthNamesShort format like \"Mar\"

I'm using datepicker of开发者_如何学Go jquery ui now it show the month names like "March" I want show them in monthNamesShort format like "Mar" How can i do?

thanks


Use an uppercase 'M' in the month part of the format string.

how can i format jquery datepicker as "25-JAN-2009"


Edit

I'm sure there is a nicer way, but what about manually giving it the month names?

$('#member_dob').datepicker({
            monthNames: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']
});
0

精彩评论

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