...
|
...
|
@@ -49,6 +49,15 @@ public final class DateUtil { |
|
|
return date;
|
|
|
}
|
|
|
|
|
|
public static Date fromatByyyMMdd_hhmmssSSS(String dateStr) throws ParseException {
|
|
|
|
|
|
SimpleDateFormat dfs = new SimpleDateFormat("yyyyMMddHHmmssSSS");
|
|
|
Date parse = dfs.parse(dateStr);
|
|
|
|
|
|
return parse;
|
|
|
|
|
|
}
|
|
|
|
|
|
public static String getDDTM(){
|
|
|
return timesdf.format(currentDate);
|
|
|
}
|
...
|
...
|
@@ -63,6 +72,7 @@ public final class DateUtil { |
|
|
return convertLDTToDate(dateTime);
|
|
|
}
|
|
|
|
|
|
|
|
|
//LocalDateTime转换为Date
|
|
|
public static Date convertLDTToDate(LocalDateTime time) {
|
|
|
return Date.from(time.atZone(ZoneId.systemDefault()).toInstant());
|
...
|
...
|
|