I have a database table with date field whose data type is also date and i want to fetch those recods which lie betwnn two dates.
My query is :
SELECT * FROM wp_races_entry WHERE date_in >=2012-02-08 && date_in<=2012-02-27
i also tried
SELECT * FROM wp_races_entry WHERE date_in BETWEEN 2012-02-08 AND 2012-02-27
i have records in table with date 2012-02-14 but still it return empty value.
Please help me guiding what i am missing exactly.
'01-Jan-2012'won't work in France, etc), but'20120101'is pretty common practice