PHP date_parse_from_format()Functions
PHP Date/Time Reference Manual
Examples
Returns an associative array containing information about the specified date, according to the specified format:
<?php
print_r(date_parse_from_format("mmddyyyy","05122013"));
?>
print_r(date_parse_from_format("mmddyyyy","05122013"));
?>
Run Example »
Definition and Usage
The date_parse_from_format() function returns an associative array containing information about the specified date according to the specified format.
Syntax
date_parse_from_format(format,date);
| Parameters | Description |
|---|---|
| format | Required. Specifies the format (the format isdate_create_from_format()accepted). |
| date | Required. A string representing a specified date. |
Technical Details
| Return Value: | If successful, returns an associative array containing the specified date information. |
|---|---|
| PHP Version: | 5.3+ |
PHP Date/Time Reference Manual Other Extensions