cancel
Showing results for 
Search instead for 
Did you mean: 

No Of Days

Former Member
0 Kudos
43

Hi

  i have 2 variables in which month & year is stored . I want to get no of days . I am using vb.net

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

edy_simon
Active Contributor
0 Kudos

Hi Sunny,

Dim NumOfDays as Integer = DateTime.DaysInMonth(2012, 11) 'Return number of days for Year 2012 Month November

Regards
Edy

Answers (1)

Answers (1)

Former Member
0 Kudos

HI Sunny,

Use DateTime's DaysInMonth property.

Regards

Kartheek