Sub test() d = MyDateDiff("12/04/2014 18:51", "15/04/2014 14:15") End Sub Function MyDateDiff(Deb, Fin) d = DateDiff("s", Deb, Fin) s = d Mod 60 h = (d - s) / 60 m = h Mod 60 h = (h - m) / 60 MyDateDiff = h & ":" & Format(m, "00") & ":" & Format(s, "00") End Function
minutes = DateDiff("N", datedeb, datefin)
heures = minutes \ 60
minutes = minutes Mod 60
MsgBox Format(heures, "00") & ":" & Format(minutes, "00")
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question