The DATE_FORMAT(DateColumn) has to be in the SELECT list:
SELECT DATE_FORMAT(date, '%Y-%m-%dT%TZ') AS date_formatted
FROM table_name
ORDER BY id DESC
The DATE_FORMAT(DateColumn) has to be in the SELECT list:
SELECT DATE_FORMAT(date, '%Y-%m-%dT%TZ') AS date_formatted
FROM table_name
ORDER BY id DESC