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


ISQLSyntax2.FormatDatetime Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

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