I m using below query from c# to compare current date with date stored in database as string.but it do not show the proper output even though it is not showing any error.
Select * from tblconcertdetail
WHERE STR_TO_DATE(Concert_Date,'%m/%d/%Y')>="+DateTime.Now.ToString("yyyy-MM-dd")+";
first argument shows as: 2011-06-10 second shows ; 2011-06-02
it shows all rows of table
Concert_Dateis a date/datetime/timestamp?2011-06-10is greater than/equal to2011-06-02. This row should be displayed.