Convert a MySQL datetime string to an ISO 8601 string
Parameters
Name | Type | Description |
---|---|---|
$mysql_date | string | UTC datetime in MySQL syntax of YYYY-MM-DD HH:MM:SS |
Return Value
string: ISO 8601 UTC datetime string formatted as YYYY-MM-DDThh:mm:ssTZD where timezone offset is always +00:00