2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-13 19:02:26 +03:00

fix: fecha.parse invalid return false (#309)

This commit is contained in:
mengxiong10
2019-05-15 10:21:11 +08:00
parent 6f28dddb88
commit 96812abaf9
+1 -1
View File
@@ -67,7 +67,7 @@ export function formatDate (date, format) {
export function parseDate (value, format) {
try {
return fecha.parse(value, format)
return fecha.parse(value, format) || null
} catch (e) {
return null
}