If you want to scope your search for the specific month, and you only know “year” and “month” value then.
int days = DateTime.DaysInMonth(year.Value, month.Value);
this will get
If you want to scope your search for the specific month, and you only know “year” and “month” value then.
int days = DateTime.DaysInMonth(year.Value, month.Value);
this will get