<?php//Timestamp for now$startTime = time();$endTime = array();//Loop from now to now+24 monthsfor($x=0;$x<24;$x++){ //Get the timstamp for now +x months $time = strtotime("+$x months"); //Get the number of days in now +x months $daysInMonth = date('t', $time); //Loop over the number of days in that month for($y=1;$y<$daysInMonth;$y++) { //Get the date for day y in now +x months $endTimes[] = date('d M Y', strtotime("+$y days", $time)); }}echo 'Check In Date <select name="checkindate">';foreach($endTimes as $checkInDate){ echo '<option value="'.strtotime($checkInDate).'">'.$checkInDate.'</option>';}echo '</select>';echo 'Check Out Date <select name="checkoutdate">';foreach($endTimes as $checkOutDate){ echo '<option value="'.strtotime($checkOutDate).'">'.$checkOutDate.'</option>';}echo '</select>';?>