Return an associative array with detailed information about a specified date, based on the provided format.
| <?php print_r(date_parse_from_format(“mmddyyyy”,“05122013”)); ?> |
The date_parse_from_format() function returns an associative array with detailed information about a specified date, according to the given format.
| date_parse_from_format(format, date) |
|
Parameter |
Description |
|
format |
Required. Specifies the format, which must be one accepted by date_create_from_format(). |
|
date |
Required. A string that specifies a date. |
|
Return Value: |
Returns an associative array containing information about the specified date on success. |
|
PHP Version: |
5.3+ |
|
PHP Changelog: |
In PHP 7.2, the |