CSharp examples for System:DateTime Day
Set To End Of Day
using System;//from w w w . ja va 2 s .c om public class Main{ public static DateTime SetToEndOfDay(this DateTime date) { return new DateTime(date.Year, date.Month, date.Day).AddDays(1).AddTicks(-1); } }