on 2012 Nov 29 5:48 AM
Hi
i have 2 variables in which month & year is stored . I want to get no of days . I am using vb.net
Thanks
Hi Sunny,
Dim NumOfDays as Integer = DateTime.DaysInMonth(2012, 11) 'Return number of days for Year 2012 Month November
Regards
Edy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Sunny,
Use DateTime's DaysInMonth property.
Regards
Kartheek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
8 | |
8 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.