完成部分TODO修改bug
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.cool.store.utils;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.text.DateFormat;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
@@ -80,6 +82,9 @@ public class CoolDateUtils {
|
||||
|
||||
|
||||
public static final Date parseDate(String dateString ,String format){
|
||||
if (StringUtils.isBlank(dateString)){
|
||||
return null;
|
||||
}
|
||||
DateFormat dateFormat = new SimpleDateFormat(format);
|
||||
Date date = null;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user