I am trying to run the mysql select statement, where it looks today, and returns the results that were logged on this current day. Currently, I have tried the following, but it does not work.
SELECT users.id, DATE_FORMAT(users.signup_date, '%Y-%m-%d') FROM users WHERE users.signup_date = CURDATE()
I changed my SELECT , thanks guys.
SELECT id FROM users WHERE DATE(signup_date) = CURDATE()
mysql
Jako 01 Oct '12 at 16:59 2012-10-01 16:59
source share