|
|
@@ -205,18 +205,4 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 字符串转换成日期
|
|
|
- *
|
|
|
- * @param strDate 日期字符串
|
|
|
- * 日期的格式yyyy-MM-dd HH:mm
|
|
|
- */
|
|
|
- public static Date stringToDate(String strDate) {
|
|
|
- if (StringUtils.isBlank(strDate)) {
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- DateTimeFormatter fmt = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm");
|
|
|
- return fmt.parseLocalDateTime(strDate).toDate();
|
|
|
- }
|
|
|
}
|