修改工具类
This commit is contained in:
@@ -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 "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user