|
@@ -42,10 +42,11 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils
|
|
|
public static String YYYYMMDDHH_CHINESE = "yyyy年MM月dd日 HH";
|
|
|
public static String YYYY_MM_DD_HH_MM_SSS = "yyyy-MM-dd HH:mm:ss.SSS";
|
|
|
|
|
|
- private static String[] parsePatterns = {
|
|
|
+ public static String[] parsePatterns = {
|
|
|
"yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM",
|
|
|
"yyyy/MM/dd", "yyyy/MM/dd HH:mm:ss", "yyyy/MM/dd HH:mm", "yyyy/MM",
|
|
|
- "yyyy.MM.dd", "yyyy.MM.dd HH:mm:ss", "yyyy.MM.dd HH:mm", "yyyy.MM"};
|
|
|
+ "yyyy.MM.dd", "yyyy.MM.dd HH:mm:ss", "yyyy.MM.dd HH:mm", "yyyy.MM",
|
|
|
+ "yyyy.MM.dd HH:mm:ss.SSS", "yyyy/MM/dd HH:mm:ss.SSS", "yyyy-MM-dd HH:mm:ss.SSS",};
|
|
|
|
|
|
/**
|
|
|
* 获取当前Date型日期
|