Menu Riverview Church

DATE_PARSE_FROM_FORMAT

Get info about given date formatted according to the specified format

SYNTAX

date_parse_from_format ( string $format , string $date ) : array

PARAMETERS

format

Format accepted by DateTime::createFromFormat().

date

String representing the date.

RETURN

Returns associative array with detailed info about given date.

EXAMPLES

Array
(
    [year] => 2001
    [month] => 2
    [day] => 3
    [hour] => 4
    [minute] => 5
    [second] => 6
    [fraction] => 0
    [warning_count] => 0
    [warnings] => Array
        (
        )

    [error_count] => 0
    [errors] => Array
        (
        )

    [is_localtime] => 1
    [zone_type] => 1
    [zone] => 25200
    [is_dst] =>
)

PHP