System.DateTimeExtension.StartOfMonth C# (CSharp) Метод

StartOfMonth() публичный статический Метод

public static StartOfMonth ( this date ) : System.DateTime
date this
Результат System.DateTime
        public static DateTime StartOfMonth(this DateTime date)
        {
            return new DateTime(date.Year, date.Month, 1);
        }