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



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

Parameters

value
The TdTimestampWithTimeZone to be converted into a TdDate

Return Value

A TdDate representation of the TdTimestampWithTimeZone.
Remarks

The date component of the TdTimestampWithTimeZone is returned as a TdDate. The date is not adjusted to UTC. Therefore, if the timestamp is "2007-11-30 23:24:00-08:00", the TdDate that is returned is "2007-11-30".

If the TdTimestampWithTimeZone value is TdTimestampWithTimeZone.Null a TdDate.Null is returned.

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