"Tue Oct 18 04:11:56 CST 2005 "的String转换成Date

格式如 "Tue   Oct   18   04:11:56   CST   2005 "的String转换成Date,关键代码是 
SimpleDateFormat   sdf   =   new   SimpleDateFormat( "EEE   MMM   dd   HH:mm:ss   zzz   yyyy ",   Locale.US); 
Date   d   =   sdf.parse(myString); 
posted @ 2011-06-28 11:11  jrvin  阅读(343)  评论(0编辑  收藏  举报