datetime php one year code example Example: php datetime add 1 weeek $date = new DateTime(); $date->modify('+1 day'); $date->modify('+5 week');