Converting date formats from strings
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 2 Nov 2015 20:10:59 +0000 (15:10 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 2 Nov 2015 20:10:59 +0000 (15:10 -0500)
js/app.js
js/custom/pageSetup.js

index 2e40abe..34805bf 100644 (file)
--- 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,
index 1878389..763239f 100644 (file)
@@ -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,