Send feedback on this topic.
Teradata.Client.Provider
ToString(String,IFormatProvider) Method



Teradata.Client.Provider Namespace > TdDate Structure > ToString Method : ToString(String,IFormatProvider) Method
The DateTime format string that will be used to format the TdDate.
The culture specific information used to generate the string equivalent of TdDate.
TdDate is converted into the equivalent String representation using the specified format and culture information.
Syntax
'Declaration
 
Public Overloads Function ToString( _
   ByVal format As String, _
   ByVal formatProvider As IFormatProvider _
) As String
'Usage
 
Dim instance As TdDate
Dim format As String
Dim formatProvider As IFormatProvider
Dim value As String
 
value = instance.ToString(format, formatProvider)
public string ToString( 
   string format,
   IFormatProvider formatProvider
)
public:
String^ ToString( 
   String^ format,
   IFormatProvider^ formatProvider
) 

Parameters

format
The DateTime format string that will be used to format the TdDate.
formatProvider
The culture specific information used to generate the string equivalent of TdDate.

Return Value

A string representation of the date in TdDate.
Exceptions
ExceptionDescription
The format is invalid.
Remarks

If the format parameter is null, the string representation of TdDate will be equivalent to the "G" format specifier which is "yyyy-MM-dd".

If the this instance is TdDate.Null, a string that contains "Null" will be returned.

For more information refer to TdDate.ToString

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