ISDateTimeUtils.UTCToLocalTime

Description

This function converts UTC (Coordinated Universal Time) to the local date and time.

Syntax

object.UTCToLocalTime(aUTC)

Part Attribute Type Description
object Required
The object always implements the ISDateTimeUtils interface
aUTC In, Required
DateTime
Coordinated Universal Time

Return Value

DateTime

Returns UTC converted to the local date and time.

Example

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)  
Note:

In Profile Client v8 on User Interface the local date and time can be found in Help > About > Time Info > Local Timeor in Special > World Clock > Local Time.

Version information

Added in v8.2.0