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.dll" (lpSystemTime As SYSTEMTIME)
Private Sub Form_Load()
Dim gmt As Date
Dim utctime As SYSTEMTIME
GetSystemTime utctime ' put the time and date in UTC time into utctime
gmt = utctime.wMonth & "/" & utctime.wDay & "/" & utctime.wYear & " " & _
utctime.wHour & ":" & utctime.wMinute & ":" & utctime.wSecond
MsgBox "GMT = " & gmt
End Sub
David Paulson
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.