Definition :
In php date_modify() Function is inbuilt function.PHP date_modify() function is used to modify or to alter the timestamp of the DateTime object. It returns a DateTime object on success and returns FALSE on failure.
date_modify(object, modify)
Parameter | Description |
---|---|
object | Required. Specifies a DateTime object returned by date_create() |
modify | Required. Specifies a date/time string |
Given below example Modify the timestamp. Add 12 days:
Output : 2015-03-13