Send feedback on this topic.
Teradata.Client.Provider
Parse(String) Method



Teradata.Client.Provider Namespace > TdDate Structure > Parse Method : Parse(String) Method
The string that is to be converted into a TdDate.
The specified string is converted into an equivalent TdDate.
Syntax
'Declaration
 
Public Overloads Shared Function Parse( _
   ByVal value As String _
) As TdDate
'Usage
 
Dim value As String
Dim value As TdDate
 
value = TdDate.Parse(value)
public static TdDate Parse( 
   string value
)
public:
static TdDate Parse( 
   String^ value
) 

Parameters

value
The string that is to be converted into a TdDate.

Return Value

A TdDate is returned that is equivalent to the Date contained in the value string.
Exceptions
ExceptionDescription
Value is a null reference.
Value does not contain a valid representation of a date.
Remarks

The input string is parsed using the format information contained in the current Globalization.DateTimeFormatInfo.

An attempt is made to avoid throwing a FormatException. Any unrecognized characters in the string will be ignored.

If the value contains the string "Null" a TdDate.Null will be returned.

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