mfaqueiroz
Registered User.
- Local time
- Yesterday, 18:39
- Joined
- Sep 30, 2015
- Messages
- 125
Hei!
I've one table with dates in this format dd:mm:yyyy hh:mm:ss and in another column the milliseconds.
Do you have any suggestion how can I make the time difference in milliseconds?
I've write the following code, but isn't working for all cases
If Ms2 > Ms1 Then
Dif = DateDiff("s", Time1, time2)
Difms = ms2 - ms1
Dif= (Dif * 1000) + Difms
Else
Dif = DateDiff("s", Time1, time2)
Difms = (ms2 - ms1) + 1000
Dif = ((Dif - 1) * 1000) + Difms
Thank in advance for your help!
I've one table with dates in this format dd:mm:yyyy hh:mm:ss and in another column the milliseconds.
Do you have any suggestion how can I make the time difference in milliseconds?
I've write the following code, but isn't working for all cases
If Ms2 > Ms1 Then
Dif = DateDiff("s", Time1, time2)
Difms = ms2 - ms1
Dif= (Dif * 1000) + Difms
Else
Dif = DateDiff("s", Time1, time2)
Difms = (ms2 - ms1) + 1000
Dif = ((Dif - 1) * 1000) + Difms
Thank in advance for your help!
Last edited: