“22:40:29.668 EET Sun Jan 02 2011”的日期格式是什么?在java中?

发布于 2024-10-12 14:58:50 字数 98 浏览 8 评论 0原文

java中“22:40:29.668 EET Sun Jan 02 2011”的日期格式是什么?我需要的是知道这个日期的格式。 12/12/2011 的格式为 dd/mm/yyyy。

what is the date format of "22:40:29.668 EET Sun Jan 02 2011" in java. what i nedded is to know the format of this date ex. format of 12/12/2011 is dd/mm/yyyy.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

一指流沙 2024-10-19 14:58:50

SimpleDateFormat javadoc.

alt text

您应该能够根据此图表找到模式。

new SimpleDateFormat(pattern).format(date);

There is a chart on the SimpleDateFormat javadoc.

alt text

You should be able to find the pattern according to this chart.

new SimpleDateFormat(pattern).format(date);

不如归去 2024-10-19 14:58:50

你的问题不明确,12/12/2011 可以是 mm/dd/yyyy 或 dd/mm/yyyy...

但我建议使用 java 中的反向日期库(它是第三方工具)

your question is ambigious, 12/12/2011 could be either mm/dd/yyyy or dd/mm/yyyy...

but i would suggest using the reverse date library in java (it's a third party tool)

紫罗兰の梦幻 2024-10-19 14:58:50

样本的格式既不是 dd/mm/yy/ 也不是 mm/dd/yy,而是 M dd YYYY 或类似的格式。

Format of the sample is neither dd/mm/yy/ nor mm/dd/yy, it's M dd YYYY or something like this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文