Grzechooo

DateTime

Dec 23rd, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.14 KB | None | 0 0
  1. <?php
  2. foreach (new DatePeriod(new DateTime, new DateInterval("P1D"), new DateTime("+5 days")) as $day) {
  3.     echo $day->format("d.m.Y\n");
  4. }
Advertisement
Add Comment
Please, Sign In to add comment