I want to create a DatePeriod object with a negative DateInterval.
This creates a DatePeriod with the year increasing from today to 2016.
$this->S
This extract worked for me:
$iDate = $endDate; while($iDate >= $startDate) { $dates[] = new DateTime($iDate->format('Y-m-d')); $iDate->sub(new DateInterval("P1D")); }