Dim from As Date = DateTimePicker1.Value Dim toDays As Date = DateTimePicker2.Value
Dim years As Integer = toDays.Year - from.Year
Dim mm As Integer = toDays.Month - from.Month
If mm < 0 Then
years = years - 1
mm = 12 + mm
End If...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.