DateTimeExtensions.EndOfMonth

Returns the very end of the given month (the last millisecond of the last hour for the given date)

public static DateTime EndOfMonth(DateTime obj)

Parameters

obj
DateTime Base, from where the calculation will be preformed.