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

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