DateTime MesActual = new DateTime(DateTime.Now.Year, DateTime.Now.Month,1);
    var anho = DateTime.Now.Year;
    var _mes = DateTime.Now.Month;
    var Ultimodiames = DateTime.DaysInMonth(anho, _mes);
    DateTime MesTermina = MesActual.AddDays(Ultimodiames - 1);