display a date in a localized format in Chrome? I use HTML5 , which in Chrome provides a r...">

How to make <input type = "date"> display a date in a localized format in Chrome?

I use HTML5 <input type="date">, which in Chrome provides a rich input control that displays the date in a format MM/DD/YYYY. The problem is that my application is waiting for input in a localized format on the server side, which means MM.DD.YYYY.

Is there any way I can change the way Chrome renders and accepts data from date controls?

+4
source share
2 answers
  • Chrome displays the date in a format for the language configured in Settings> Language:

    Chrome language settings

  • Chrome ( ) RFC 3339 -format HTML5. , .

+7

--, HTML-5 ( ) DD-MM-YYYY, MM-DD-YYYY. script <INPUT..>.

0

Source: https://habr.com/ru/post/1526487/


All Articles