参考代码
Dim birth As Date = new Date(2001, 4, 1)Dim y As Integer = Date.Today.Year - birth.YearIf Date.Today < birth.AddYears(y) Then y = y - 1End If
msgbox(y)