parse_date()
public static function parse_date( $date, $format='mdy', $return_keys_on_empty=false )
Creates an array from the given value using year, month, and day as keys.
Since:
unknown2.5.17(Added the $return_keys_on_empty param.)
Source: common.php:3513
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$date | string | array | The date string or array to be parsed. | |
$format | string | 'mdy' | The value of the field dateFormat property. |
$return_keys_on_empty | bool | false | Indicates if the returned array should include the keys with empty values when passed an empty date. |
Returns
array