DMXzone Calendar 2 Support Product Page
Answered
Lodging reservation calendar
Asked 28 May 2014 20:21:30
1
has this question
28 May 2014 20:21:30 Rusty Monette posted:
I am using this calendar for a reservation system for lodging. I have a "Check In" and "Check Out" date in a mysql database. Currently when I connect the database to the calendar it shows the "Check Out" date as booked/unavailable. I have tried using php to minus one day from the checkout date since a guest could book the same day someone is checking out but will not work with common php commands. How can I minus a day from a date that is in the mysql database when loading on the calendar? Replies
Replied 30 May 2014 14:45:30
30 May 2014 14:45:30 Rusty Monette replied:
For anyone who are looking to change the dates on the calendar here is the code that works.
<?php echo dmxCalendarFormat(date('Y-m-d',strtotime ( '-1 day' , strtotime ( $row_CabinCalendar['DateStop']))), "yy-mm-dd" ; ?>
<?php echo dmxCalendarFormat(date('Y-m-d',strtotime ( '-1 day' , strtotime ( $row_CabinCalendar['DateStop']))), "yy-mm-dd" ; ?>