How to find number of Days in a given Month from a web application or windows application? Copy one line of code in your page.
DateTime.DaysInMonth(Year,Month);
OR
Response.Write(DateTime.DaysInMonth(2010, 7));
The above line should display result as 31.
No comments:
Post a Comment