开发者

what is the date format of "22:40:29.668 EET Sun Jan 02 2011" in java?

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. form开发者_运维百科at of 12/12/2011 is dd/mm/yyyy.


There is a chart on the SimpleDateFormat javadoc.

what is the date format of "22:40:29.668 EET Sun Jan 02 2011" in java?

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

new SimpleDateFormat(pattern).format(date);


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)


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜