I am trying to find the equivalent of PHP's "Difference to Greenwich time (GMT) with colon between hours and minutes Example: +02:00" date format for MySQL's DATE_FORMAT function.
PHP Example:
<?php
echo date('P');
//+02:00
I have a date field I am trying to format to ISO 8601. I have most of the format but I am missing the last part which is the "Difference to Greenwich time" AKA "+00:00".
MySQL Example:
SELECT DATE_FORMAT(date, "%Y-%m-%dT%T) as date FROM table;
//returns 2016-03-03T16:03:01
//required 2016-03-03T16:03:01+00:00
Documention Links:
http://php.net/manual/en/function.date.php
http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_date-format