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
You can use select DATE(time) from appointment_details for date only
select DATE(time) from appointment_details
or
You can use select TIME(time) from appointment_details for time only
select TIME(time) from appointment_details