Testing input format for html5 date restrictions
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 2 Nov 2015 16:50:14 +0000 (11:50 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 2 Nov 2015 16:50:14 +0000 (11:50 -0500)
js/app.js
js/custom/pageSetup.js

index 9828d83..ea89e1d 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -75,7 +75,7 @@ $(document).ready(function () {
     d = today.getDate();
     m = today.getMonth() + 1;
     y = today.getFullYear();
-    requiredDate = y + '/' + m + '/' + d;
+    requiredDate = y + '-' + m + '-' + d;
     $("#dateOff1").attr("min", requiredDate);
     
     $("#dateOff1").change(function () {
index 3cee46d..d97de7b 100644 (file)
@@ -66,7 +66,7 @@ $(document).ready(function () {
     d = today.getDate();
     m = today.getMonth() + 1;
     y = today.getFullYear();
-    requiredDate = y + '/' + m + '/' + d;
+    requiredDate = y + '-' + m + '-' + d;
     $("#dateOff1").attr("min", requiredDate);
     
     $("#dateOff1").change(function () {