I have a string column in my database as
Wed Aug 13 17:51:06 GMT+05:30 2014
Can i cast this to date and use this in where clause to get records
where
Timecolumn >( CURDATE()-7)
Notice that the timezone specifier GMT+05:30
comes between the time-of-day string and the four digit year string.
I am running this query in phpmyadmin but i get no results and yes they do exist
SELECT * FROM `calldetails` WHERE STR_TO_DATE('date', '%a %b %d %H:%i:%s %x %Y')>(CURDATE()-7)
Also date is name of my column here