System.TimeUtils.ToLastDayOfMonth C# (CSharp) Метод

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

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