Julian Date:
format(#5/1/2001#,"yy") & format(format(#5/1/2001#,"y"),"000")
This makes sure of the Leading Zero on the number of days in the year.
Now the GMT/UTC/ZULU
This is a Windows API which determines the Difference between the Local (PC Time) and the GMT/UTC/ZULU. This will allow you to add this difference into you Local time.
Add the following to a New Module:
Public 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
Public Type TIME_ZONE_INFORMATION
Bias As Long
StandardName(32) As Integer
StandardDate As SYSTEMTIME
StandardBias As Long
DaylightName(32) As Integer
DaylightDate As SYSTEMTIME
DaylightBias As Long
End Type
Public Declare Function GetTimeZoneInformation Lib "kernel32" (lpTimeZoneInformation As TIME_ZONE_INFORMATION) As Long
Public Sub TestTimeZone()
'Test Sub for showing how this works
Dim TZI As TIME_ZONE_INFORMATION
Call GetTimeZoneInformation(TZI)
Debug.Print TZI.Bias / 60 & " Hours"
End Sub