9/30/11美国东部时间下午2:58:49
这个Java日期格式是什么? 比如“MM / dd / YY HH:MM:SS ???”
答案 0 :(得分:3)
你有谷歌吗?
http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
此文档的摘录:
Date and Time Pattern Result
"yyyy.MM.dd G 'at' HH:mm:ss z" 2001.07.04 AD at 12:08:56 PDT
"EEE, MMM d, ''yy" Wed, Jul 4, '01
"h:mm a" 12:08 PM
"hh 'o''clock' a, zzzz" 12 o'clock PM, Pacific Daylight Time
"K:mm a, z" 0:08 PM, PDT
"yyyyy.MMMMM.dd GGG hh:mm aaa" 02001.July.04 AD 12:08 PM
"EEE, d MMM yyyy HH:mm:ss Z" Wed, 4 Jul 2001 12:08:56 -0700
"yyMMddHHmmssZ" 010704120856-0700
所以,你可以试试这个:
"MM/dd/yy hh:mm:ss a z"