So I have a due date for tasks, stored in the database as ’10-nov-2011′.
Is there someone I can do a query to select all tasks that due date is less then now?
A straight out due < today doesn’t work.
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.
Change the column to type
date. Then your query will work.If you can’t change the column type, use
STR_TO_DATEto parse the string into a date.