ArcGIS Pro 2.7 API Reference Guide
Format Method

ArcGIS.Core.Data Namespace > SQLSyntax Class : Format Method
The value to format.
The type of formatting to perform.
Formats the dateTime value into a literal string in the format specified by dateTimeType. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
Public Function Format( _
   ByVal dateTime As Date, _
   ByVal dateTimeType As SQLDateTimeType _
) As String

Parameters

dateTime
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 10, Windows 8.1

See Also

Reference

SQLSyntax Class
SQLSyntax Members