MySQL Forums
Forum List  »  Newbie

Selecting all data of a specific date from mysql datetime
Posted by: Ricky Nkansah
Date: January 22, 2015 07:59AM

SELECT * FROM `booking_tbl` WHERE booking_status = 'Check In' AND departure_date_time = NOW()


I use the datetime datatype for the departure_date_time so i can get data from that data because it checking the date and time

but i want it to check on the date from the datetime datatype

So how can i get the data only with that date without the time in the mysql datetime datatype

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.