Can someone Plz help me build my application ?
I mean how can I Auto Generating Age in a textbox using datetimepicker in VB code plz.
I mean how can I Auto Generating Age in a textbox using datetimepicker in VB code plz.
Private Function GetAge(DOB As Date) As Integer Dim Age As Integer If DOB > Date Then GetAge = 0: Exit Function Age = Year(Date) - Year(DOB) If Month(DOB) > Month(Date) Or (Month(DOB) = Month(Date) And Day(DOB) > Day(Date)) Then Age = Age - 1 End If GetAge = Age End Function
Comment