面试日程
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
package com.cool.store.utils;
|
||||
|
||||
import java.text.DateFormat;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.*;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.Calendar;
|
||||
@@ -51,5 +54,16 @@ public class CoolDateUtils {
|
||||
}
|
||||
|
||||
|
||||
public static final Date parseDate(String dateString ){
|
||||
DateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT_SEC);
|
||||
Date date = null;
|
||||
try {
|
||||
date = dateFormat.parse(dateString);
|
||||
} catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return date;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user