I have a date_time field in mysql in the following format:
date_time
-----------------
Wed Nov 08 2012 16:22:06 GMT 0
How do i get the three days data from the current date.
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.
I bet that the column
Date_Time‘s data type is varchar, and if that’s the case, you should convert it to valid date usingSTR_TO_DATE, example,SOURCES