ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TimeZoneConversion Class / ConvertDateTime Method
The value to be converted from one time zone to another.
The current time zone of the date parameter.
The time zone to convert the date parameter into.

In This Topic
    ConvertDateTime Method
    In This Topic
    Converts a System.DateTime from one time zone to another.
    Syntax
    Public Shared Function ConvertDateTime( _
       ByVal date As Date, _
       ByVal fromTimeReference As TimeReference, _
       ByVal toTimeReference As TimeReference _
    ) As Date

    Parameters

    date
    The value to be converted from one time zone to another.
    fromTimeReference
    The current time zone of the date parameter.
    toTimeReference
    The time zone to convert the date parameter into.

    Return Value

    The equivalent date value after the specified time zone conversion.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.7 or higher.
    See Also