|
@@ -19,6 +19,8 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils
|
|
|
|
|
|
public static String YYYY_MM_DD = "yyyy-MM-dd";
|
|
public static String YYYY_MM_DD = "yyyy-MM-dd";
|
|
|
|
|
|
|
|
+ public static String YYYYMM = "yyyyMM";
|
|
|
|
+
|
|
public static String YYYYMMDDHHMMSS = "yyyyMMddHHmmss";
|
|
public static String YYYYMMDDHHMMSS = "yyyyMMddHHmmss";
|
|
|
|
|
|
public static String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
|
|
public static String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
|
|
@@ -53,6 +55,11 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils
|
|
return dateTimeNow(YYYY_MM_DD_HH_MM_SS);
|
|
return dateTimeNow(YYYY_MM_DD_HH_MM_SS);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public static final String getYearMonthStr()
|
|
|
|
+ {
|
|
|
|
+ return dateTimeNow(YYYYMM);
|
|
|
|
+ }
|
|
|
|
+
|
|
public static final String dateTimeNow()
|
|
public static final String dateTimeNow()
|
|
{
|
|
{
|
|
return dateTimeNow(YYYYMMDDHHMMSS);
|
|
return dateTimeNow(YYYYMMDDHHMMSS);
|