Expand date filter by last execution overwrite

This commit is contained in:
2023-04-03 21:36:11 +02:00
parent 7ee51421e0
commit e3baae55d9
4 changed files with 56 additions and 12 deletions

View File

@@ -15,11 +15,11 @@ public class DateUtils {
* Convert String to date.
* @return parsed date, null if exception occurs
*/
public static Date convert(String date) {
public static Date convert(String date, Date defaultDate) {
try {
return dateFormat.parse(date);
} catch (ParseException e) {
return null;
return defaultDate;
}
}
}