Is there any php function available where I can add days to a date to make up another date? For example, I have a date in the following format: 27-December-2011
If I
$date = new DateTime('27-December-2011'); $date->add(new DateInterval('P7D')); echo $date->format('d-F-Y') . "\n";
Change the format string to be whatever you want. (See the documentation for date()).
date()