I have SQL data table that containes a DATE or DATETIME field
a LINQ statement show here just to get the basic idea
var testLinq = from t in DBDataContext.Certificates select t;
foreach (var t in testLinq)
{
....
}
Left out the code in {..} for briefness. BUT whenever 'foreach' tries to use t I get this exception
"Input string was not in a correct format." When converting a string to DateTime, parse the string to take the date before putting each variable into the DateTime Object
How can I do this when its handled by Linq inside the foreach loop?