1 2 3 4 5 6 7 8 9 10 11 12 13
| // Construct a legend of current month interval
$vLegendDate = array ();
$vI = 0;
$vPeriodMonth = substr($outFirstDayOfPeriod,5,2);
$vPeriodYear = substr($outFirstDayOfPeriod,0,4);
$vFirstDay = substr($outFirstDayOfPeriod,8,2);
$vNextDay = date("Y-m-d", mktime(0, 0, 0, $vPeriodMonth, $vFirstDay, $vPeriodYear));
while ($vNextDay <= $outLastDayOfPeriod)
{
$vLegendDate[] = substr($vNextDay, 5,5);
$vI++;
$vNextDay = date("Y-m-d", mktime(0, 0, 0, $vPeriodMonth,$vFirstDay+$vI, $vPeriodYear));
} |
Partager