I have a table in the MySQL database that is set up with DATETIME. I need to SELECT in this table only by DATE and excluding the time.
DATETIME
SELECT
How d
Try SELECT * FROM Profiles WHERE date(DateReg)=$date where $date is in yyyy-mm-dd
SELECT * FROM Profiles WHERE date(DateReg)=$date
Alternatively SELECT * FROM Profiles WHERE left(DateReg,10)=$date
SELECT * FROM Profiles WHERE left(DateReg,10)=$date
Cheers