HTML-5 date field shows as “mm/dd/yyyy” in Chrome, even when valid date is set

前端 未结 5 1227
慢半拍i
慢半拍i 2020-12-29 00:55

I just upgraded an ASP.Net MVC application to MVC-4. The field editor for inputs based on DateTime values now include\'s the HTML-5 type="date" attrib

5条回答
  •  旧时难觅i
    2020-12-29 01:47

    In chrome to set the value you need to do YYYY-MM-DD i guess because this worked : http://jsfiddle.net/HudMe/6/

    So to make it work you need to set the date as 2012-10-01

提交回复
热议问题