Returns an associative array containing the specified date information according to the specified format:
<?phpprint_r(date_parse_from_format("mmddyyyy","05122013"));?>The date_parse_from_format() function returns an associative array containing the specified date information according to the specified format.
date_parse_from_format( format,date);
| parameter | describe |
|---|---|
| format | Required. Specifies the format (formats accepted by date_create_from_format()). |
| date | Required. A string specifying the date. |
| Return value: | If successful, returns an associative array containing the specified date information. |
|---|---|
| PHP version: | 5.3+ |