Dim MyDate1, MyDate2 As Date
MyError = Int(MyDate1- MyDate2) & Format(MyDate1 - MyDate2, " hh:nn")
I found this one helpful
MyErrorhh = DateDiff("h", MyDate1, MyDate2)
DateDiff returns a Variant (Long) specifying the number of time intervals between two specified dates.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.