toLocaleDateString() is not returning dd/mm/yyyy format

后端 未结 3 1186
轻奢々
轻奢々 2020-12-17 16:28

Hi I have used toLocaleDateString() to display a date from a rss feed,t its not showing dd/mm/yyyy format in all browser, safari and

3条回答
  •  無奈伤痛
    2020-12-17 16:38

    This has already been answered before:

    According to the Mozilla documentation, the format can vary wildly depending on the user's location and computer settings.

    https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toLocaleDateString

    The exact format depends on the platform, locale and user's settings.

    .toLocaleDateString() Not Working in Firefox

提交回复
热议问题