This document is archived and information here might be outdated.  Recommended version.


ISQLSyntax2.FormatDatetime Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IS > ISQLSyntax2 Interface > ISQLSyntax2.FormatDatetime Method
ArcGIS Developer Help

ISQLSyntax2.FormatDatetime Method

Format a datetime value into a literal string.

[Visual Basic .NET]
Public Function FormatDatetime ( _
    ByVal datetimeValue As Object, _
    ByVal datetimeType As esriSQLDatetimeType _
) As String
[C#]
public string FormatDatetime (
    object datetimeValue,
    esriSQLDatetimeType datetimeType
);
[C++]
HRESULT FormatDatetime(
  VARIANT datetimeValue,
  esriSQLDatetimeType datetimeType
);
[C++]
Parameters
datetimeValue [in]

datetimeValue is a parameter of type VARIANT datetimeType [in]
datetimeType is a parameter of type esriSQLDatetimeType

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

ISQLSyntax2 Interface