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



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

Parameters

value
The TdTimestamp that is to be converted to a TdDate.

Return Value

A TdDate is returned.
Remarks

When the TdTimestamp is converted into a TdDate, the time component of the timestamp is truncated.

If the TdTimestamp value is TdTimestamp.Null, a TdDate.Null is returned.

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