Search This Blog

Tuesday, April 8, 2014

Days In Month C# Example

C# > System Namespace > DateTime > DaysInMonth 

Returns the number of days in the specified year and month.

Example

int daysInMonth = System.DateTime.DaysInMonth(2014, 4);