From: Anthony Talarico Date: Mon, 2 Nov 2015 16:50:14 +0000 (-0500) Subject: Testing input format for html5 date restrictions X-Git-Tag: v1.0.0^2~55 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=fd90170e679ea198c2bcfc09beecddfde64c4861;p=WP-Themes%2Fbpla.git Testing input format for html5 date restrictions --- diff --git a/js/app.js b/js/app.js index 9828d83..ea89e1d 100644 --- 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 () { diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 3cee46d..d97de7b 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -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 () {