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

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdDate Structure
TdDate Members
Overload List