I have an SQL SELECT statement to select records from my table based on the current date. What I want to do is compare the dates without the timestamps because the times do not match. I just care for the date.
Here is what I have:
string SQL = @"SELECT Trans_Set_Id FROM EDI10002 " +
@"WHERE (Tp_Id = '" + tpid + "' AND Rec_Date = '" + DateTime.Now.ToShortDateString() + @"')";
The issue I'm having is how do I get the date only from the field "Rec_Date"?