This function converts UTC (Coordinated Universal Time) to the local date and time.
object.UTCToLocalTime(aUTC)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISDateTimeUtils interface |
|
aUTC |
In, Required | DateTime |
Coordinated Universal Time |
DateTime
Display UTC converted to the local date and time.
Dim aDateTimeUtils
Dim aLocalTime
Dim aUTC
Dim aMessage
Set aDateTimeUtils = Profile.DateTimeUtils
aLocalTime = aDateTimeUtils.Now
aUTC = aDateTimeUtils.LocalTimeToUTC(aLocalTime)
aMessage = "UTC: " & aUTC & vbNewLine &_
"UTC in Local Time: " & aDateTimeUtils.UTCToLocalTime(aUTC)
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface the local date and time can be found in
or in .