Set the ISO date to the 5th week in 2013 in PHP

Description

The following code shows how to set the ISO date to the 5th week in 2013.

Example


//from   www .ja  v  a  2 s.co m
<?php
    $date=date_create();
    date_isodate_set($date,2013,5);
    echo date_format($date,"Y-m-d");
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Data Types »




Array
Array Associative
Array Util
ArrayObject
Data Types
Date
Date Format
DateTime
Number
String
String Escape
String Filter
String HTML
String Type
Timezone