System.TimeUtils.ToLastDayOfMonth C# (CSharp) Method

ToLastDayOfMonth() public static method

public static ToLastDayOfMonth ( this dt ) : System.DateTime
dt this
return System.DateTime
	    public static DateTime ToLastDayOfMonth(this DateTime dt)
	    {
	        return new DateTime(dt.Year,dt.Month,DateTime.DaysInMonth(dt.Year,dt.Month));
	    }