Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP date_parse_from_format() Function

PHP date_parse_from_format() Function

PHP Date/Time PHP Date/Time Reference Manual

Example

Return an associative array containing information about a specified date according to a specified format:

Run Example »


Definition and Usage

The date_parse_from_format() function returns an associative array containing information about a specified date according to a specified format.

Syntax

date_parse_from_format(

format,date);

Parameters Description
format Required. Specifies the format (in a format accepted by date_create_from_format() ).
date Required. A string specifying the date.

Technical Details

Return Value: Returns an associative array containing information about the specified date on success.
PHP Version: 5.3+

PHP Date/Time PHP Date/Time Reference Manual