Converts the date to end at midnight.
using System; using System.Collections.Generic; using System.Text; namespace Nucleo { public static class DateTimeUtility { /// <summary> /// Converts the date to end at midnight. /// </summary> /// <param name="beginDate">The date to convert.</param> /// <returns>A converted date.</returns> public static DateTime ConvertToEndDate(DateTime endDate) { return new DateTime(endDate.Year, endDate.Month, endDate.Day, 23, 59, 59); } } }