Jquery datepicker格式日期不工作
问题描述:
这是我的代码:
$(function () {
$("#datepicker").datepicker({ dateFormat: 'DD-MM-YY' });
});
显示日期时间选择器,但格式为mm / dd / yyyy。为什么它不起作用?
And the datetime picker is shown, but in format mm/dd/yyyy. Why is it not working?
答
这是默认值,意思是它无法识别您的选项。
Thats the default, meaning it does not recognise your option.
尝试:
dateFormat: 'dd-mm-yy'
(小写)