Answers for "mysql date to string"

SQL
14

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
Posted by: Guest on April-08-2020
0

mysql date to string

-- Convert the current date to YYYYMM format
  SELECT DATE_FORMAT(NOW(), '%Y%m');
  # 201302
Posted by: Guest on July-29-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language