标签:catch sim 类型 cst form cep except test cat
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
java中将SimpleDateFormat类型转换成Date类型
标签:catch sim 类型 cst form cep except test cat
原文地址:https://www.cnblogs.com/convict/p/8759017.html