开发者

show monthNameShort in datepicker

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜