Send feedback on this topic.
Teradata.Client.Provider
Explicit Type Conversion(DateTime,TdDate) Operator



Teradata.Client.Provider Namespace > TdDate Structure > Explicit Type Conversion Operator : Explicit Type Conversion(DateTime,TdDate) Operator
The TdDate that will be converted into a DateTime type.
Enables a TdDate to be converted into a DateTime.
Syntax
'Declaration
 
Overloads Public Operator Narrowing CType( _
   ByVal value As TdDate _
) As Date
'Usage
 
public DateTime operator explicit( 
   TdDate value
)
public:
DateTime operator explicit( 
   TdDate value
)

Parameters

value
The TdDate that will be converted into a DateTime type.

Return Value

A DateTime is returned that is equivalent to the TdDate.
Exceptions
ExceptionDescription
The TdDate value is TdDate.Null.
Remarks

When the TdDate is converted into a System.DateTime, the time component of the DateTime structure will be set to "00:00:00.0000000".

Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdDate Structure
TdDate Members
Overload List