in C#, how can i get back how many days there are in a specified month and year?
Printable View
in C#, how can i get back how many days there are in a specified month and year?
Check out Calendar.GetDaysInMonth and similar.
int days = System.DateTime.DaysInMonth(2004,12);