Commit 3ec864d9 authored by yanzg's avatar yanzg

接口文档的支持

parent 638e6dcb
......@@ -731,7 +731,7 @@ public class DateHelper {
* @return 指定时间月份的第一天
*/
public static String toMonth(Date time) {
return getDateTimeString("yyyy-MM-01", time);
return getDateTimeString(FORMAT_MONTH_STRING, time);
}
/**
......@@ -741,7 +741,7 @@ public class DateHelper {
* @return 指定时间年份的第一天
*/
public static String toYear(Date time) {
return getDateTimeString("yyyy-01-01", time);
return getDateTimeString(FORMAT_YEAR_STRING, time);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment