Add 40 days to the 15th of March, 2013:
The date_add() function adds some days, months, years, hours, minutes, and seconds to a date.
| Parameter | Description |
|---|---|
| object | Required. Specifies a DateTime object returned by date_create() |
| interval | Required. Specifies a DateInterval object |
| Return Value: | Returns a DateTime object on success. FALSE on failure |
|---|---|
| PHP Version: | 5.3+ |
PHP Date/Time Reference
Your message has been sent to W3Schools.