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



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

Parameters

value
The period that is to be converted into a TdPeriodDate.

Return Value

A TdPeriodDate is returned.
Exceptions
ExceptionDescription
The ending bound of the value needs to be at least one day greater t han the beginning bound.
Remarks

The time components of the beginning and ending bound will be truncated when TdPeriodTimestampWithTimeZone is converted into a TdPeriodDate. For example, when the period

    (2008-07-04 10:32:12.111-08:00, 2008-10-04 12:00:00.321-08:00)

is converted into a TdPeriodDate the result is

    (2008-07-04, 2008-10-04)
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

TdPeriodTimestampWithTimeZone Structure
TdPeriodTimestampWithTimeZone Members
Overload List