What is the syntax to compare a date field retrieved from a table to the current date?
row.ItemArray.GetValue(10) > System.Datatime.now()?????????????
Printable View
What is the syntax to compare a date field retrieved from a table to the current date?
row.ItemArray.GetValue(10) > System.Datatime.now()?????????????
You need to parse the value of the dataobject to a DateTime before you can compare it.
Code:DateTime DT = DateTime.Parse(row.ItemArray.GetValue(10));
if (DT > DateTime.Now)
{
// super stuff goes here
}