ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data Namespace / SQLSyntax Class / Format Method / Format(DateTimeOffset,SQLDateTimeType) Method
The value to format.
The type of formatting to perform.

In This Topic
    Format(DateTimeOffset,SQLDateTimeType) Method
    In This Topic
    Formats the dateTimeOffset value into a literal string in the format specified by dateTimeType. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    dateTimeOffset
    The value to format.
    dateTimeType
    The type of formatting to perform.

    Return Value

    The formatted DateTime literal string.
    Exceptions
    ExceptionDescription
    dateTimeType is not a field of SQLDateTimeType.
    A geodatabase-related exception has occurred.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also