mfaqueiroz
New Member
- Joined
- Sep 30, 2015
- Messages
- 5
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 done in this way..but ins't working for some 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 done in this way..but ins't working for some 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!