This works but I am looking for a cleaner way to write it. Also is there a
way to display the seconds as well?
a = "4/28/06 11:00:00AM"
If (Index = 2) Then
b = Day(a) - Day(Now())
c = Hour(a) - Hour(Now())
d = Minute(a) - Minute(Now())
If (c < 0) Then
c = c + 24
b = b - 1
End If
If (d < 0) Then
d = d + 60
c = c - 1
End If
MsgBox "Days " & b & ", Hours " & c & ", Minutes " & d
End If