TimeZones.ConvertTime method (Outlook)
Converts a date/time value from one time zone to another time zone.
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 | TimeZone | 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.
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.