One of my table column's named "SetDate" of type DateTime looks as:
2010-08-02 02:55:58.420
The DateTime format from the application looks as:
2/11/2010
The problem is:
I'm passing an SQL query to the DB via application. The query has WHERE clause which compares SetDate to the date coming from application.
SetDate column carries this format: 2010-08-02 02:55:58.420
Date passed from application carries this format: 3/12/2010
I just need to compare the two dates without the time 2010-08-02
and 3/12/2010
.
Since they are in different formats, I get no records back from the database.
I'm using C# and T-SQL.
Any ideas?