Commit 79c922a4 authored by Quxl's avatar Quxl

x

parent 9cf599bf
......@@ -104,7 +104,9 @@ public class DateUtil {
* @return
*/
public static Date parse(Object obj) {
if (obj instanceof Date) {
if(obj == null) {
return null;
} else if (obj instanceof Date) {
return new Date(((Date) obj).getTime());
} else {
String str = String.valueOf(obj).trim();
......
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