VB Code:
Private Declare Sub GetSystemTime Lib "kernel32" (lpSystemTime As SYSTEMTIME)
Private Type SYSTEMTIME
wYear As Integer
wMonth As Integer
wDayOfWeek As Integer
wDay As Integer
wHour As Integer
wMinute As Integer
wSecond As Integer
wMilliseconds As Integer
End Type
Private Function TimeToMillisecond() As String
Dim DaAnswer As String
Dim MyMillTime As SYSTEMTIME
On Error Resume Next
GetSystemTime MyMillTime
DaAnswer = Hour(Now) & ":" & Minute(Now) & ":" & Second(Now) & ":" & MyMillTime.wMilliseconds
TimeToMillisecond = DaAnswer
End Function
I'm a little confused after this however. ??You want to get the current time in milliseconds, convert it to "something else" and then convert is back??