' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Imports System

Class MainClass
    Public Shared Sub Main(ByVal args As String())
        Dim dt As DateTime = New DateTime(1964, 12, 8)
        Dim now As DateTime = DateTime.Now
        Dim age As Integer = now.Year - dt.Year
        If now.DayOfYear < dt.DayOfYear Then
            age = age - 1
        End If
        Console.WriteLine(age)
    End Sub
End Class 
