Send feedback on this topic.
Teradata.Client.Provider
ToUtcDateTime Method



Teradata.Client.Provider Namespace > TdTimestampWithTimeZone Structure : ToUtcDateTime Method
Converts this instance of TdTimestampWithTimeZone to a DateTime that will contain the UTC representation of the timestamp.
Syntax
'Declaration
 
Public Function ToUtcDateTime() As Date
'Usage
 
Dim instance As TdTimestampWithTimeZone
Dim value As Date
 
value = instance.ToUtcDateTime()
public DateTime ToUtcDateTime()
public:
DateTime ToUtcDateTime(); 

Return Value

A DateTime is returned that represents the UTC of the timestamp.
Exceptions
ExceptionDescription
This instance of TdTimestampWithTimeZone is TdTimestampWithTimeZone.Null.
Remarks
When the timestamp is converted to UTC, both the date and time components may be affected. For instance, suppose the timestamp is "2007-05-10 22:12:30-08:00". When this timestamp is converted to UTC the result will be "2007-5-11 06:12:30Z".
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

TdTimestampWithTimeZone Structure
TdTimestampWithTimeZone Members