Finding Days in Month.

vishalneeraj-24503
Posted by vishalneeraj-24503 under ASP.NET category on | Points: 40 | Views : 860
int month1 = DateTime.DaysInMonth(2014, 09); 
Output:- 30
int month2 = DateTime.DaysInMonth(2014, 10);
Output:- 31
int month3 = DateTime.DaysInMonth(2014, 02);
Output:- 28
int month4 = DateTime.DaysInMonth(2014, 04);
Output:- 30
int month5 = DateTime.DaysInMonth(2014, 12);
Output:- 31

Comments or Responses

Login to post response