System.DateTimeExtension.StartOfYear C# (CSharp) Method

StartOfYear() public static method

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