System.TimeUtils.ToLastDayOfMonth C# (CSharp) Méthode

ToLastDayOfMonth() public static méthode

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