private static DateTime?RoundDate(DateTime date) { return(date.AddNanoseconds(-date.Nanosecond())); }