public static Date parse(String dateTime){
try {
return new SimpleDateFormat("yyyy-MM-dd hh:dd:ss").parse(dateTime);
} catch (ParseException e) {
e.printStackTrace();
}
return null;
}
调用parse(“写入年月日时分秒”)
public static Date parse(String dateTime){
try {
return new SimpleDateFormat("yyyy-MM-dd hh:dd:ss").parse(dateTime);
} catch (ParseException e) {
e.printStackTrace();
}
return null;
}
调用parse(“写入年月日时分秒”)