Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql date comparison with formatting

SELECT date_format(DATE(table.date_field),'%Y-%m-%d') FROM Table_Name
WHERE DATE(table.date_field) BETWEEN DATE('2022-03-01') AND DATE('2022-03-15');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #date #comparison #formatting
ADD COMMENT
Topic
Name
4+4 =