eo_check_datetime
since 1.9.5
eo_check_datetime( $format, $datetime_string, $timezone = false )
Converts a datetime string and the intended format to a DateTime object.
Parameters
string
|
$format |
The format the date string is given in
|
string
|
$datetime_string |
The date string to be cast to a DateTime object
|
\DateTimeZone
|
$timezone = false |
The timezone of the datetime string. Defaults to site timezone.
|
Return value
Changelog