PHP date_parse_from_format() Function
Example
Returns an associative array containing the specified date information based on the specified format:
<?php print_r(date_parse_from_format("mmddyyyy","05122013")); ?>
Definition and Usage
The date_parse_from_format() function returns an associative array containing the specified date information based on the specified format.
Syntax
date_parse_from_format(format,date);
Parameters | Description |
---|---|
format | Required. Specify the format (date_create_from_format() Accepted format). |
date | Required. Specify the date, string value. |
Technical Details
Return Value: | Returns an associative array containing the specified date information if successful. |
---|---|
PHP Version: | 5.3+ |