Public Function AddTimes(dteTime1 As Date, dteTime2 As Date) As Date
Dim inthr1 As Integer
Dim intmin1 As Integer
Dim intsec1 As Integer
Dim inthr2 As Integer
Dim intmin2 As Integer
Dim intsec2 As Integer
Dim inthrNew As Integer
Dim intminNew As Integer
Dim intsecNew As Integer
inthr1 = Format(dteTime1, "h")
intmin1 = Format(dteTime1, "n")
intsec1 = Format(dteTime1, "s")
inthr2 = Format(dteTime2, "h")
intmin2 = Format(dteTime2, "n")
intsec2 = Format(dteTime2, "s")
inthrNew = inthr1 + inthr2
intminNew = intmin1 + intmin2
intsecNew = intsec1 + intsec2
AddTimes = TimeSerial(inthrNew, intminNew, intsecNew)
Exit Function