From fd90170e679ea198c2bcfc09beecddfde64c4861 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 2 Nov 2015 11:50:14 -0500 Subject: [PATCH] Testing input format for html5 date restrictions --- js/app.js | 2 +- js/custom/pageSetup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 () { -- 2.17.1