搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Date format in new date input field to yyyy-mm-dd

  • 1 个回答
  • 2 人有此问题
  • 1 次查看
  • 最后回复者为 user1929

more options

Hi, Firefox 57, new date format has some wired issue with date input viewing mode.

<input type="date" value="2017-10-24" name="mydate">

The above input get to the server in correct way but when viewing the format shows as mm/dd/yyyy. I changed the browser language to British en-gb as per some help articles says but still it shows as the same. Please see the screenshots. Even change date format from control panel also does not work.

I have lot of web based systems which uses date inputs to get user data. my customers complains about this issue and I have not solution to give.

Please help me to get this issue solved.

Hi, Firefox 57, new date format has some wired issue with date input viewing mode. <input type="date" value="2017-10-24" name="mydate"> The above input get to the server in correct way but when viewing the format shows as mm/dd/yyyy. I changed the browser language to British en-gb as per some help articles says but still it shows as the same. Please see the screenshots. Even change date format from control panel also does not work. I have lot of web based systems which uses date inputs to get user data. my customers complains about this issue and I have not solution to give. Please help me to get this issue solved.

所有回复 (1)

more options

According to https://blog.nightly.mozilla.org/2017/06/12/datetime-inputs-enabled-on-nightly/ , "<input type=date> and <input type=time> input box are automatically formatted based on your browser locale, that means the Firefox browser with the language you downloaded and installed". Are you using the en-GB version of Firefox (which is different from changing the language settings in the preferences)? If not, you can download it from here: https://ftp.mozilla.org/pub/firefox/releases/57.0/win64/en-GB/ .