Easy Tutorial
❮ Func Filesystem Clearstatcache Php Preg_Replace_Callback_Array ❯

PHP date_isodate_set() Function

PHP Date/Time Reference Manual

Example

Set the ISO date for the 5th week of 2013:


Definition and Usage

The date_isodate_set() function sets the date according to the ISO 8601 standard, using the offset of weeks and days (instead of using a specified date).

Syntax

Parameter Description
object Required. Specifies a DateTime object returned by date_create()
year Required. Specifies the year in the date.
week Required. Specifies the week in the date.
day Optional. Specifies the offset from the first day of the week. Default is 1.

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 was changed from NULL to DateTime.
--- ---

❮ Func Filesystem Clearstatcache Php Preg_Replace_Callback_Array ❯