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.
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.
精彩评论