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);
saber el primer dia y el ultimo dia del mes en c#
nandreamd96
- 11
- 5