Commit 854be08c authored by Quxl's avatar Quxl

x

parent 86cf3313
...@@ -18,11 +18,9 @@ public class DateUtil { ...@@ -18,11 +18,9 @@ public class DateUtil {
return df.format(date); return df.format(date);
} }
public static Object parseDate(String dateString, String fmt) { public static Date parseDate(String dateString, String fmt) {
if (dateString == null || dateString.trim().length() == 0) { if (dateString == null || dateString.trim().length() == 0) {
return null; return null;
} else if ("00000000".equals(dateString)) {
return "0000-00-00";
} else { } else {
try { try {
DateFormat df = new SimpleDateFormat(fmt); DateFormat df = new SimpleDateFormat(fmt);
......
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