You may want to store the date/time as the number of seconds since an arbitrary date and then just look for the largest value as you parse through the UDT. In VBScript, it would be something like datediff(""s"", ""1/1/2000 12:00:00 AM"", now()) to generate the number.