Date.ToString Method (String) | |
Converts the value of the current
DateTime object to its equivalent string representation using the specified format and the formatting conventions of the current culture.
Namespace:
XSharp
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax METHOD ToString(
s AS STRING
) AS STRING
public string ToString(
string s
)
Request Example
View SourceParameters
- s
- Type: String
Return Value
Type:
StringA string representation of value of the current
DateTime object as specified by
format.
Exceptions Exception | Condition |
---|
FormatException | The length of format is 1, and it is not one of the format specifier characters defined for DateTimeFormatInfo.
-or-
format does not contain a valid custom format pattern. |
ArgumentOutOfRangeException | The date and time is outside the range of dates supported by the calendar used by the current culture. |
See Also