阅读背景:

Java/Android -将GMT时间字符串转换为本地时间

来源:互联网 

Ok, so I have a string, say "Tue May 21 14:32:00 GMT 2012" I want to convert this string to local time in the format May 21, 2012 2:32 pm. I tried SimpleDateFormat("MM dd, yyyy hh:mm a").parse(), but it threw an exception. So what should I do?Ok, so I have a string, say "Tue May 21 14:32:0




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: