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



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

Parameters

value
The TdDate that is to be converted.

Return Value

a TdPeriodDate is returned that has a beginning bound of value and ending bound that is one time granule greater than value.
Exceptions
ExceptionDescription
The ending bound could not be created because the value is set to TdDate.MaxValue
Remarks
A TdDate can be cast to a TdPeriodDate. The beginning bounds of the period will be value, and the ending bound will be the value plus one time granule (one day).
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