changing date formats to comply with RFC html date format requirements
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 2 Nov 2015 17:46:57 +0000 (12:46 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 2 Nov 2015 17:46:57 +0000 (12:46 -0500)
parts/off-canvas-menu.php

index 803fd70..5eef5d7 100644 (file)
@@ -16,8 +16,8 @@
             <span>Book Now</span>
         </div>
     </div>
-    <?php $requiredDate = date('Y-m-d', strtotime("+2 days")); ?>
-    <?php $minStay = date('Y-m-d', strtotime($requiredDate. "+2 days" )); ?>
+    <?php $requiredDate = date('d-m-Y', strtotime("+2 days")); ?>
+    <?php $minStay = date('d-m-Y', strtotime($requiredDate. "+2 days" )); ?>
     <form method="post" action="<?php echo get_permalink(150); ?>">
         <div class="row">
             <div class="small-12 res-search columns">