diff --git a/ui/src/utils/date.js b/ui/src/utils/date.js
index <HASH>..<HASH> 100644
--- a/ui/src/utils/date.js
+++ b/ui/src/utils/date.js
@@ -308,7 +308,7 @@ export function extractDate (str, mask, dateLocale) {
   const date = new Date(
     d.year,
     d.month === null ? null : d.month - 1,
-    d.day,
+    d.day === null ? 1 : d.day,
     d.hour,
     d.minute,
     d.second,
fix(extractDate): default to first day of month instead of last day of prev month when day is missing in the mask #<I> (#<I>)