标签: javascript html html5 date datepicker
默认输入日期选择器在html中显示MM-DD-YYYY。
<input type="date" id="gdatum" />
有没有办法将面具更改为DD-MM-YYYY?
答案 0 :(得分:0)
The format is YYYY-MM-DD. You cannot change it. $('#myinput').val('2013-12-31'); sets value
资料来源:Setting format and value in input type="date"