use Format(Now, "HH:mm:ss:ms")
Format(Now, "HH:mm:ss:ms")
is incorrect..... for some reason the ms is not reconised by visual basic...
I've not had time to look into it, but do simple test
- Private Sub Command1_Click()
-
MsgBox Format(Now, "HH:mm:ss:ms")
-
End Sub
you will see the last 3 digits are actully seconds.....
my is "3" then the current seconds digit(s)
the API GetSytemTime Works best for current system time.... API's are always preffered