PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → datetimedifference - wrong result
datetimedifference - wrong result
Débuté par willy hermans, 21 sep. 2017 15:54 - 1 réponse
Posté le 21 septembre 2017 - 15:54
Hello,

I use this code

Trace(dStartTijd,DateSys()+TimeSys() )
PrikKlok.Werktijd = DateTimeDifference(dStartTijd,DateSys()+TimeSys() )
Hadd(Prikklok)

The trace gives the following result
20170921153600000 2017092115410730

The system stores 51 seconds and not the 5 minutes timedifference.

Am I doing something wrong?

Thanks

Willy Hermans
Posté le 22 septembre 2017 - 11:17
Hi Willy,

The result of DateTimeDifference is a string.
It depends on what type your PrikKlok.Werktijd is to know what will be stored.

Kind regards,
Piet