Get an associative array with detailed information about a specified date, according to the specified format in PHP

Description

The following code shows how to get an associative array with detailed information about a specified date, according to the specified format.

Example



<?php
    print_r(date_parse_from_format("mmddyyyy","05122013"));
?>

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