Converts the value of the current
DateTime object to its equivalent string representation.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public override string ToString()
Return Value
Type:
StringA string representation of the value of the current
DateTime object.
Exceptions Exception | Condition |
---|
ArgumentOutOfRangeException | The date and time is outside the range of dates supported by the calendar used by the current culture. |
See Also