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

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

TdTimestamp Structure
TdTimestamp Members
Overload List