diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c7c7f1f9..342a01837 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,8 @@ * 【core 】 ZipUtil增加get方法 * 【cache 】 对CacheObj等变量使用volatile关键字 * 【core 】 Base64增加encodeWithoutPadding方法(issue#I26J16@Gitee) -* 【core 】 ExceptionUtil增加message消息包装为运行时异常的方法(issue#1253@Gitee) +* 【core 】 ExceptionUtil增加message消息包装为运行时异常的方法(pr#1253@Gitee) +* 【core 】 DatePattern增加年月格式化常量(pr#220@Gitee) ### Bug修复 * 【cron 】 修复CronTimer可能死循环的问题(issue#1224@Github) diff --git a/hutool-core/src/main/java/cn/hutool/core/date/DatePattern.java b/hutool-core/src/main/java/cn/hutool/core/date/DatePattern.java index 5e7cf962d..9ab3817a5 100644 --- a/hutool-core/src/main/java/cn/hutool/core/date/DatePattern.java +++ b/hutool-core/src/main/java/cn/hutool/core/date/DatePattern.java @@ -40,6 +40,7 @@ public class DatePattern { * 年月格式 {@link FastDateFormat}:yyyy-MM */ public static final DateTimeFormatter NORM_MONTH_FORMATTER = DateTimeFormatter.ofPattern(NORM_MONTH_PATTERN); + /** * 简单年月格式:yyyyMM */ @@ -52,6 +53,7 @@ public class DatePattern { * 简单年月格式 {@link FastDateFormat}:yyyyMM */ public static final DateTimeFormatter SIMPLE_MONTH_FORMATTER = DateTimeFormatter.ofPattern(SIMPLE_MONTH_PATTERN); + /** * 标准日期格式:yyyy-MM-dd */