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

StartOfMonth() public static méthode

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