toLocaleDateString()不返回dd / mm / yyyy格式 [英] toLocaleDateString() is not returning dd/mm/yyyy format

查看:831
本文介绍了toLocaleDateString()不返回dd / mm / yyyy格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 toLocaleDateString()来显示rss feed的日期,不显示 dd / mm / yyyy 格式, safari mozila 显示不同,但 chrome 正确显示。

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 mozila its showing differently but chrome it is showing correctly.

推荐答案

以前已经回答过:

根据Mozilla文档,格式可能有所不同很大程度上取决于用户的位置和计算机设置。

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()在Firefox中不工作

这篇关于toLocaleDateString()不返回dd / mm / yyyy格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆