I have table xxx (,,,,,); among these one column has DateTime datatype (say Login_date)
Login_date has values like: " 27-Nov-13 3:12:07 PM "
My Problem is that
i want to select the rows of table xxx where Login_date is " 27-Nov-13 "
i am getting error when executing a query like this
DateTime dt=new DateTime();
dt=DateTime.Now;
Command Query is: " SELECT * FROM xxx WHERE (Login_Date=@date) "
cmd.Parameters.add("@date",dt);
This is not selecting any rows from table xxx.
This is not working because of difference in Time.
& here i am using MYSQL data base Please bring me out of this problem.