how to get date from mysql datetime code example
Example 1: get date from now() mysql
You can use CURDATE()
Example 2: mysql select date from datetime
WHERE DATE(datetime) = '2009-10-20'
You can use CURDATE()
WHERE DATE(datetime) = '2009-10-20'