From 7d9b56255c5a3a1f602482c29e5e3c03ce10076a Mon Sep 17 00:00:00 2001 From: HelderSepu Date: Fri, 22 Sep 2017 17:44:01 -0400 Subject: [PATCH] Correction to the validateDateTime --- src/core/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/utils.js b/src/core/utils.js index 9495d0fe..338399b3 100644 --- a/src/core/utils.js +++ b/src/core/utils.js @@ -501,7 +501,7 @@ export const validateString = ( val ) => { } export const validateDateTime = (val) => { - if (!isNaN(Date.parse(val))) { + if (isNaN(Date.parse(val))) { return "Value must be a DateTime" } }