Specifying the value output of of an HTML5 input type = date?

后端 未结 3 1457
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-03 09:47

I\'d like to add native date pickers to my application, which currently uses a legacy, home-rolled system. Date input support isn\'t widespread, yet, but if I could present

3条回答
  •  囚心锁ツ
    2020-12-03 10:21

    In Google Chrome, this has recently changed. The values displayed to the user are now based on the operating system locale. The readout, so input.value, always returns as yyyy-mm-dd regardless of the presentation format, however.

    Way more useful in my opinion.

    Source:

    http://updates.html5rocks.com/2012/08/Quick-FAQs-on-input-type-date-in-Google-Chrome

提交回复
热议问题