Answers for "mysql where date is in month"

SQL
1

mysql select month and year

SELECT DATE_FORMAT(test_date,'%Y%m') AS date FROM test_table;
Posted by: Guest on April-27-2020
1

get month from database php

echo 'Day' . date('d', strtotime($row['Date']));
echo 'Month' . date('m', strtotime($row['Date']));
echo 'Year' . date('Y', strtotime($row['Date']));
Posted by: Guest on May-12-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language