This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IS > ISQLSyntax2 Interface > ISQLSyntax2.FormatDatetime Method (ArcObjects .NET 10.4 SDK) |
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,
BSTR* datetimeString
);
[C++]
Parameters datetimeValue [in] datetimeValue is a parameter of type VARIANT datetimeType [in]
datetimeType is a parameter of type esriSQLDatetimeType datetimeString [out, retval] datetimeString is a parameter of type BSTR