This commit is contained in:
@jyuhsin
2025-07-28 10:47:05 +08:00
parent 4d66cded17
commit f03ed4ddc3
4 changed files with 17 additions and 5 deletions
@@ -136,4 +136,12 @@ public class DateUtil {
return day + "" + hour + "小时" + min + "分钟";
}
public static long formatDate(String data) {
try {
return new SimpleDateFormat("yyyy-MM-dd HH:mm").parse(data).getTime();
} catch (ParseException e) {
e.printStackTrace();
return 0;
}
}
}