DateTime..::..ToString Method
Converts the value of the current DateTime object to its equivalent string representation.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public string ToString()
<TemplateAttribute> _ Public Function ToString As String
[TemplateAttribute] public: String^ ToString()
Return Value
A string representation of the value of the current DateTime object.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentOutOfRangeException | The date and time is outside the range of dates supported by the calendar used by the current culture. |