try {
String dateString = "2009-08-02 13:43:00";
DateFormat df = SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date date = df.parse(dateString);
} catch(Exception ex) {
}
结果:
date --> Sun Aug 02 13:44:00 CST 2009
原文地址:https://www.cnblogs.com/convict/p/8759017.html
时间: 2024-10-07 19:45:47