I am looping through a list of DateTime variables and have got the .ToUniversalTime variable. I want to find out from the list which is the closest one approaching Now.ToUniversalTime but am having difficulty trying to work it out
I had it looping through like this but this isn't much good as I only want to return the one that is the closest approaching to the system time.
If TodaysCard(i).eventDate.ToUniversalTime < Now.ToUniversalTime Then
Any guidance would be greatly appreciated.
Thanks,