I’m trying to select all dates that haven’t pass the current date. So for instance, I want to display every date after 2009-10-06 and NOT dates prior 2009-10-06.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What about something like this, if I understand correctly the question :
As @James Deville stated, you could use some function to get the current date, instead of hard-coding it in the query.
NOW()will get you date+time ;CURDATE()(or its aliasesCURRENT_DATE()andCURRENT_DATE) will get you date :So, in your case, something like this should do :