Parameters
- format
- The DateTime format string that will be used to format the TdDate.
Return Value
A string representation of the date in TdDate.
Exception | Description |
---|---|
System.FormatException | The format is invalid. |
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.
The format specifiers that are supported are as follows:
Format Specifier | Description |
---|---|
d | Short date pattern. |
D | Long date pattern. |
G | The ANSI string representation. For TdDate the format will be an ANSI Date "yyyy-MM-dd". Cultural information is ignored. |
M or m | Month day pattern |
L or l | The Teradata literal representation of a Date. |
Y or y | Year month pattern |
For more information on format specifiers refer to the Globalization.DateTimeFormatInfo in the MSDN documentation.
Product | Versions | Platforms |
---|---|---|
.NET | 6, 7 | Windows, Linux, MacOS |
.NET Framework | 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 | Windows |
.NET Standard | 2.0 | Windows, Linux, MacOS |