Ad esempio per sapere quando giorni ha gennaio
DateTime.DaysInMonth(2018,01)