2
I would like to calculate the difference of two dates and print out all the dates between them, for example:
$data_inicio = new DateTime("08-02-2018");
$data_fim = new DateTime("10-03-2018");
($dateInterval = $data_inicio->diff($data_fim);
echo $dateInterval->days;
my return is : 30.
What I’d like to have is the days that are in that interval.
Example: 09-02-2018, 10-02-2018 ..... 09-03-2018 and etc.
How do I recover those values?
David, if you took this response from the OS in another language put the link as reference please.
– RFL