Gets the end of day.

image_pdfimage_print
   
 
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);
        }
}