日期:2014-05-20  浏览次数:20782 次

CString 如何转换为Date?
rt

------解决方案--------------------
DateFormat.parse(String s)
------解决方案--------------------
import java.text.DecimalFormat;
//Date nowTime=new Date(System.currentTimeMillis()); 取系统时间
//SimpleDateFormat sDateFormat=new SimpleDateFormat( "yyyy/MM/DD HH:mm:ss ");
//String todayTime=sDateFormat.format(nowTime);
//System.out.println(nowTime);
sDateFormat.parse(String StringDate)// 字符串转日期

------解决方案--------------------
建议看一下下面的帖子,关于时间方面的问题,介绍的特全
http://community.csdn.net/Expert/topic/5421/5421828.xml?temp=.4764063