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?<
for object oriented users,
function getDaysInYearMonth (int $year, int $month, string $format){
$date = DateTime::createFromFormat("Y-n", "$year-$month");
$datesArray = array();
for($i=1; $i<=$date->format("t"); $i++){
$datesArray[] = DateTime::createFromFormat("Y-n-d", "$year-$month-$i")->format($format);
}
return $datesArray;
}