修改工具类

This commit is contained in:
季圣华
2021-07-16 19:34:29 +08:00
parent 0987190d74
commit f2ab4f282e

View File

@@ -54,8 +54,12 @@ public class Tools {
*
* @return
*/
public static String getCurrentMonth(Date date) {
return new SimpleDateFormat("yyyy-MM-dd").format(date);
public static String parseDateToStr(Date date) {
if(date!=null) {
return new SimpleDateFormat("yyyy-MM-dd").format(date);
} else {
return "";
}
}
/**