' 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
Imports Microsoft.VisualBasic

Module Main
    Sub Main()
        Dim t1 As DateTime = DateTime.Parse("02-11-2003 10:44:02")
        Dim t2 As DateTime = DateTime.Parse("04-11-2003 00:49:02")
        Dim s As String = System.DateTime.op_Subtraction(t2,t1).ToString()
        Console.WriteLine(s)
        Dim s2 As String = Cstr(Datediff ("h","02-11-2003 10:44:02","04-11-2003 00:49:02"))
        Console.WriteLine(s2)
        Dim s3 As String = System.DateTime.op_Subtraction(t2,t1).TotalHours.ToString()
        Console.WriteLine(s3)
    End Sub
End Module
