Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
VB
If day(dob) = 1 Then
            DateTimePicker2.Value = DateSerial(Year(dob) + 60, Month(dob), 0)
        Else
            DateTimePicker2.Value = DateSerial(Year(dob) + 60, Month(dob) + 1, 0)
        End If
    End Sub
Posted
Comments
Maciej Los 10-Jan-14 18:41pm    
What?
Shahan Ayyub 11-Jan-14 15:46pm    
What is the type of `dob` and which namespaces have you imported? Which framework you are using and is it a compile time or runtime error ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900