|
@@ -95,6 +95,15 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils
|
|
|
return DateFormatUtils.format(now, "yyyy/MM/dd");
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ * 日期路径 即年/月/日 如2018/08/08
|
|
|
+ */
|
|
|
+ public static final String year()
|
|
|
+ {
|
|
|
+ Date now = new Date();
|
|
|
+ return DateFormatUtils.format(now, "yyyy");
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
* 日期路径 即年/月/日 如20180808
|
|
|
*/
|