modify("+{$i} day"); $dates[] = $current->format("Y-m-d"); } setlocale(LC_TIME, 'de_DE.UTF-8'); // set German locale ?>