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
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