“22:40:29.668 EET Sun Jan 02 2011”的日期格式是什么?在java中?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
SimpleDateFormat javadoc.
您应该能够根据此图表找到模式。
new SimpleDateFormat(pattern).format(date);
There is a chart on the SimpleDateFormat javadoc.
You should be able to find the pattern according to this chart.
new SimpleDateFormat(pattern).format(date);
你的问题不明确,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)
样本的格式既不是 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.