how to use date_format in mysql code example
Example 1: php mysql date format
date("Y-m-d H:i:s")
Example 2: mysql format date
DATE_FORMAT(date, format)
-- E.g.
SELECT DATE_FORMAT(dateField, '%m/%d/%Y') FROM TableName;
-- See https://www.mysqltutorial.org/mysql-date_format/ for available formats