如果用jdk1.1版本Date类可解决GMT日期格式串转换成CST时间:
Date dd=new Date();
String ss=dd.toGMTString(); //为GMT日期格式string
dd=new Date(ss); //为CST时间。
不过toGMTString()和new Date(String s)都为不提倡方法。
Date dd=new Date();
String ss=dd.toGMTString(); //为GMT日期格式string
dd=new Date(ss); //为CST时间。
不过toGMTString()和new Date(String s)都为不提倡方法。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货