Gets the end of day.
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Cmoss.Util { public class DateFunctions { /// <summary> /// Gets the end of day. /// </summary> /// <param name="date">The date.</param> /// <returns></returns> public static DateTime GetEndOfDay(DateTime date) { return new DateTime(date.Ticks - 1); } } }