TimeZones.ConvertTime Method (Outlook)
Converts a date/time value from one time zone to another time zone.
Version Information
Version Added: Outlook 2007
Syntax
expression .ConvertTime(SourceDateTime, SourceTimeZone, DestinationTimeZone)
expression A variable that represents a TimeZones object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
SourceDateTime |
Required |
Date |
A date/time value expressed in the original time zone. |
SourceTimeZone |
Required |
The original time zone of the date/time value that is to be converted. |
|
DestinationTimeZone |
Required |
TimeZone |
The target time zone to which the date/time value is to be converted. |
Return Value
A Date value that represents the date and time expressed in the DestinationTimeZone.