Date modifyThis is another way to add or subtract a date object with different month , days ,year , hour , minutes , sec etc.
This function is supported by PHP 5.2 or higher versions. So if you are running 5.2 version the you can use modify function as add or subtract functions are supported by PHP 5.3 and higher only.
The output is here
More On Date Object
PHP Date & Time class creating and examples of uses
Creating a date interval object and using with php date object
Adding date interval to date object to create new dates
Difference in date by using diff function and using date object
Add or subtract from date object using modify function
Changing parameters of the date object by using setdate function
updating time for a date object to a new value
Gettign the time zone setting of the server
Setting the default time zone of server
Array of time zones available for setting ( total list )
Getting time in seconds elapsed from Epoch time
Local time of the server or different time zones by using localtime() function