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



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

Parameters

value
A string to be converted into a TdIntervalDay.

Return Value

A TdIntervalDay is returned that is equivalent to the TdIntervalDay contained in the input string.
Exceptions
ExceptionDescription
value cannot be converted into a TdIntervalDay interval.
value is a null reference.
The resultant operation returns a value greater than the TdIntervalDay.MaxValue or less than the TdIntervalDay.MinValue.
Remarks

This method supports the following string formats:

String Format Description
General interval format.

[sign][days]

Teradata literal format. This string may be used in generating SQL against the Advanced SQL Engine.

INTERVAL [sign]'[days]' DAY

Below is the description of each format item.

Format Item Description
sign If negative a minus sign will be displayed.
days The number of days (one to four digits in length).

Cultural settings are not supported.

While parsing the value the TdIntervalDay.Precision will be set to the number of digits contained within the day component.

For example a value of "100" will contain a precision of 3.

Requirements
ProductVersionsPlatforms
.NET6, 7Windows, Linux, MacOS
.NET Framework4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdIntervalDay Structure
TdIntervalDay Members