From 91df4edd2e8581b9614da142f5d0c360a1b0e4b3 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 2 Nov 2015 15:10:59 -0500 Subject: [PATCH] Converting date formats from strings --- js/app.js | 6 +----- js/custom/pageSetup.js | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/js/app.js b/js/app.js index 2e40abe..34805bf 100644 --- a/js/app.js +++ b/js/app.js @@ -80,11 +80,7 @@ $(document).ready(function () { $("#dateOff1").change(function () { currentDate = this.value; currentDate = new Date(currentDate); - if (currentDate !== requiredDate) { - $("#dateOff1").val(requiredDate); - } - - + alert(currentDate); }); $("#date1").datepicker({ minDate: 2, diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 1878389..763239f 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -71,11 +71,7 @@ $(document).ready(function () { $("#dateOff1").change(function () { currentDate = this.value; currentDate = new Date(currentDate); - if (currentDate !== requiredDate) { - $("#dateOff1").val(requiredDate); - } - - + alert(currentDate); }); $("#date1").datepicker({ minDate: 2, -- 2.17.1