using System;
public class MainClass{
/// <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);
}
}
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok