C#: Number of days in the specified month and year
Write a C# Sharp program to get the number of days in the specified month and year.
Sample Solution:-
C# Sharp Code:
Sample Output:
31 28 29
Flowchart:

C# Sharp Code Editor:
Improve this sample solution and post your code through Disqus
Previous: Write a C# Sharp program to compare the current date with a given date.
Next: Write a C# Sharp program to compare DateTime objects.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.