You could use a Win32 function such as
GetSystemTime or
GetLocalTime. The Declare statements that you would need look like this:
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 Declare Sub GetSystemTime Lib "kernel32" (lpSystemTime As SYSTEMTIME)
Private Declare Sub GetLocalTime Lib "kernel32" (lpSystemTime As SYSTEMTIME)
You could build your timestamp from the returned SYSTEMTIME or you could use
GetTimeFormat to format it for you.
- Elton