$df = \DateTime::createFromFormat('Y-m-d', '2016-10-15', new \DateTimeZone('Europe/Riga')); $dt = \DateTime::createFromFormat('Y-m-d', '2016-11-02', new \DateTimeZone('Europe/Riga')); $interval = $df->diff($dt); $days_interval = (int) $interval->format('%d'); $days = [ $df->format('Y-m-d') ]; for ( $i = 0 ; $i < $days_interval ; $i++ ) $days[] = \date_add( $df, new \DateInterval("P1D"))->format('Y-m-d'); print_r($days);