Mysql
 sql >> Database >  >> RDS >> Mysql

Formatta la data in MySQL SELECT come ISO 8601

Il DATE_FORMAT(DateColumn) deve essere in SELECT elenco:

SELECT DATE_FORMAT(date, '%Y-%m-%dT%TZ') AS date_formatted
FROM table_name 
ORDER BY id DESC