this is the basic statement i am trying to write
my list is the following
string firstname,
string lastname,
datetime time,
int location
Select location from myList where Time equals current time
int whichbar = this.myList.Where(d.,d.Time == Time[0] )
this is the area where I am confused
this.myList.Where(d.,d.Time == Time[0] )
if it is not the right time I just want the first one on the list closest to the time
i think i am getting close
int whichbar = this.myList.Select(o => o.location).Where(o =>o.Time == Time[0]);
my error now is cant convert to int
Comment