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
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdDate Structure
TdDate Members
Overload List