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



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

Parameters

value
The DateTime type that is to be converted into a TdDate.

Return Value

A TdDate is returned that is equivalent to the DateTime is returned.
Remarks
When the System.DateTime is converted into a TdDate, the time component of the DateTime structure will be ignored.
Requirements
ProductVersionsPlatforms
.NET6, 7Windows, Linux, MacOS
.NET Framework4.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