How to get a maximum days from a month?

Icecat

Member
Joined
Sep 25, 2007
Messages
18
Location
jakarta
Programming Experience
Beginner
How to get a maximum days from a month? (vb 2005)
For ex: days of january 2003 we get result 31
 
got it by my self :p

Dim monthi As String
monthi = LB_Month.SelectedIndex + 1
Dim dts As Integer = Date.DaysInMonth(Now.Year, monthi)
Lbl_LastMtnc.Text = dts

sorry for posting threads :D
 
Back
Top