Reputation: 773
I want to select the records where the dateTimefield
is equal to today's date. The DBMS is MySQL.
Upvotes: 0
Views: 132
Reputation: 23791
SELECT * FROM tableName WHERE DATE_FORMAT(dateField,'%m-%d-%Y')=DATE_FORMAT(NOW(),'%m-%d-%Y');
Upvotes: 0