Send feedback on this topic.
Teradata.Client.Provider
TryParse(String,TdTimestamp) Method



Teradata.Client.Provider Namespace > TdTimestamp Structure > TryParse Method : TryParse(String,TdTimestamp) Method
The string that contains the date representation.
The TdTimestamp representation of the timestamp contained in the specified string.
A timestamp represented as a string is converted to an equivalent TdTimestamp representation.
Syntax
'Declaration
 
Public Overloads Shared Function TryParse( _
   ByVal value As String, _
   ByRef result As TdTimestamp _
) As Boolean
'Usage
 
Dim value As String
Dim result As TdTimestamp
Dim value As Boolean
 
value = TdTimestamp.TryParse(value, result)
public static bool TryParse( 
   string value,
   out TdTimestamp result
)
public:
static bool TryParse( 
   String^ value,
   [Out] TdTimestamp result
) 

Parameters

value
The string that contains the date representation.
result
The TdTimestamp representation of the timestamp contained in the specified string.

Return Value

A Boolean is returned that indicates the success of the conversion. true indicates that the conversion was successful and that the conversion is returned through the result parameter. false indicates that the conversion failed.
Remarks

TryParse is the same as Parse except that an exception does not get thrown when the conversion fails.

Formatting information contained in the DateTimeFormatInfo object is used to parse the string.

If the string is either null or empty, a TdTimestamp.Null is returned.

If the conversion fails the result parameter will be set to TdTimestamp.MinValue.

For more information refer to TdTimestamp.Parse.

Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdTimestamp Structure
TdTimestamp Members
Overload List