Commit bdb5ce86 authored by yanzg's avatar yanzg

常规BUG的修改

parent b1967724
......@@ -113,6 +113,23 @@ public class DateHelper {
return getYearMonthDay(getCurDate());
}
/**
* 取得当前日期的字符串表示,格式为 yyyy-MM-dd
* @param date
* @return
*/
public static String getToday(Object date) {
return getYearMonthDay(DateHelper.getDateTime(date));
}
/**
* 取得当前日期的字符串表示,格式为 yyyy-MM-dd
* @param date
* @return
*/
public static String getToday(Date date) {
return getYearMonthDay(date);
}
/**
* 获取年份
*
......
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