System.DateTimeExtension.StartOfDay C# (CSharp) Méthode

StartOfDay() public static méthode

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