HTML 5 - Input type date formatting on iOS

后端 未结 4 734
一生所求
一生所求 2021-01-06 03:30

I am using an HTML 5 form on an iPhone. This form has an input element like the following:


W

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-06 04:03

    No.

    There are two formats at play:

    • displayed format
    • internal format exposed to JavaScript and sent to the server

    You cannot change the display format. It's up to the browser to decide how the date is presented to the user (in practice it's determined by system's locale).

    You cannot change the internal format either. It's always ISO8601, regardless of browser/locale.

提交回复
热议问题