This documentation is archived and is not being maintained.

OracleDateTime Structure

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Represents date and time data ranging in value from January 1, 4712 BC. to December, 31, 4712 AD.

For a list of all members of this type, see OracleDateTime Members.


[Visual Basic]
Public Structure OracleDateTime
   Implements IComparable, INullable
public struct OracleDateTime : IComparable, INullable
public __value struct OracleDateTime : public IComparable,

[JScript] In JScript, you can use the structures in the .NET Framework, but you cannot define your own.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


To obtain an OracleDateTime object, call the GetOracleDateTime method.

The minimum valid date for an OracleDateTime structure is 1/1/0001 00:00:00. However, Oracle supports dates as early as January 1, 4712 BC. To bind BC dates, use a String parameter and the Oracle TO_DATE or TO_CHAR conversion functions for input and output parameters respectively.


Namespace: System.Data.OracleClient

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Data.Oracleclient (in System.Data.Oracleclient.dll)

See Also

OracleDateTime Members | System.Data.OracleClient Namespace