Commit f2ab4f28 authored by 季圣华's avatar 季圣华
Browse files

修改工具类

parent 0987190d
...@@ -54,8 +54,12 @@ public class Tools { ...@@ -54,8 +54,12 @@ public class Tools {
* *
* @return * @return
*/ */
public static String getCurrentMonth(Date date) { public static String parseDateToStr(Date date) {
if(date!=null) {
return new SimpleDateFormat("yyyy-MM-dd").format(date); return new SimpleDateFormat("yyyy-MM-dd").format(date);
} else {
return "";
}
} }
/** /**
......
Supports Markdown
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