Easy Tutorial
❮ Php Imageaffinematrixget Php Restful ❯

PHP date_date_set() Function

PHP Date/Time Reference Manual

Example

Returns a new DateTime object, sets a new date, and then formats the date:


Definition and Usage

The date_date_set() function sets a new date.

Syntax

Parameter Description
object Required. Specifies a DateTime object returned by date_create()
year Required. Specifies the year in the date.
month Required. Specifies the month in the date.
day Required. Specifies the day in the date.

Technical Details

Return Value: Returns a new DateTime object on success, FALSE on failure.
PHP Version: 5.2+
--- ---
Changelog: As of PHP 5.3+, the return value changes from NULL to DateTime on success.
--- ---

❮ Php Imageaffinematrixget Php Restful ❯