Review the code snippet before inserting it on your project.
public static DateTime LastDayMonth(DateTime date) { date = date.AddMonths(1); date = date.AddDays(-date.Day); return date; }
With from Barcelona