Parse the provided string into a PHP DateTime object.
public static readDateOrDateTime ( string $date, string $timezone = null ) : DateTime | ||
$date | string | The string representation of the date (& time). |
$timezone | string | The associated timezone. Deprecated. |
return | DateTime | The date-time value represented as PHP DateTime object. |