How do I return a list of dates to the nearest minute. I need the linq query to return only dates the match the passed date to the nearest 3 minutes
return EntitySet.Count(f => f.VISITDATE == dt.Date);
I use the code like this usually:
if((date2 - date1).Minutes <= 3) {
Console.WriteLine("Do not add again!!");
}
1 Answer