Easy Tutorial
❮ Func Math Is Infinite Func String Str Replace ❯

PHP date_modify() Function

PHP Date/Time Reference Manual

Example

Modify the timestamp. Add 15 days:


Definition and Usage

The date_modify() function modifies the timestamp.

Syntax

Parameter Description
object Required. Specifies a DateTime object returned by date_create()
modify Required. Specifies a date/time string.

Technical Details

Return Value: Returns a DateTime object on success. FALSE on failure.
PHP Version: 5.2+
--- ---
Changelog: PHP 5.3.0: The return value changed from NULL to DateTime.
--- ---
❮ Func Math Is Infinite Func String Str Replace ❯