Would like to retrieve all days and date for a given month. Have this currently which shows all the days for the current month, but how do I parse in a specified month instead?<
$c_year = date("Y"); $c_month = date("m"); $no_day = cal_days_in_month(CAL_GREGORIAN, $c_month, $c_year); for($i=1; $i<=$no_day; $i++){ $cd[] .= $c_year.'-'.$c_month.'-'.$i; } $date_val = json_encode($cd) print_r($date_val); // date array