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
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

TdDate Structure
TdDate Members
Overload List