//this is the code in the booking form // time is public static time = TimeSpan.Parse(dtpTime.Value.ToShortTimeString()); //this is the code in another form while (rdr.Read()) { for (int i = 0; i < rdr.FieldCount; i++) { if ((TimeSpan)rdr[6] > Booking.time) { // etc etc } } }
rdr.Read()
Timespan.Parse
Timespan.TryParse
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)