From: Anthony Talarico Date: Mon, 2 Nov 2015 20:10:59 +0000 (-0500) Subject: Converting date formats from strings X-Git-Tag: v1.0.0^2~41 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=91df4edd2e8581b9614da142f5d0c360a1b0e4b3;p=WP-Themes%2Fbpla.git Converting date formats from strings --- 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,