System.DateTimeExtension.StartOfDay C# (CSharp) Method

StartOfDay() public static method

public static StartOfDay ( this date ) : System.DateTime
date this
return System.DateTime
        public static DateTime StartOfDay(this DateTime date)
        {
            return new DateTime(date.Year, date.Month, date.Day);
        }