IOS NSString date format must be converted and validated. checking validation
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 2 Nov 2015 19:00:12 +0000 (14:00 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 2 Nov 2015 19:00:12 +0000 (14:00 -0500)
js/app.js
js/custom/pageSetup.js

index 8850275..a3f1ad7 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -76,9 +76,11 @@ $(document).ready(function () {
     m = today.getMonth() + 1;
     y = today.getFullYear();
     requiredDate = y + '-' + m + '-' + d;
-   // $("#dateOff1").attr("min", requiredDate);
-   // $("#date1").val(requiredDate);
+    
+    $("#dateOff1").change(function () {
+        currentDate = this.value;
+        alert(currentDate);
+    });
     $("#date1").datepicker({
         minDate: 2,
         onSelect: function (date) {
index ec174be..23cdbf4 100644 (file)
@@ -67,9 +67,11 @@ $(document).ready(function () {
     m = today.getMonth() + 1;
     y = today.getFullYear();
     requiredDate = y + '-' + m + '-' + d;
-   // $("#dateOff1").attr("min", requiredDate);
-   // $("#date1").val(requiredDate);
+    
+    $("#dateOff1").change(function () {
+        currentDate = this.value;
+        alert(currentDate);
+    });
     $("#date1").datepicker({
         minDate: 2,
         onSelect: function (date) {