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



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

Parameters

value
The DateTime value that is to be converted.

Return Value

A TdTimestamp is returned that is equivalent to the DateTime value.
Remarks
If the sub-second component of the Datetime contains more than 6 digits, the sub-seconds will be truncated when the DateTime is converted into a TdDate. For example, when a DateTime value of "2007-10-31 10:12:00.3245431" is converted into a TdTimestamp the sub-second component, ".324531" will be truncated to "324543". The resulting TdTimestamp is "2007-10-31 10:12:00.23453".
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

TdTimestamp Structure
TdTimestamp Members
Overload List