System.DateTimeExtension.StartOfMonth C# (CSharp) Method

StartOfMonth() public static method

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