Converts a DateTime value to a string .
- value
- The DateTime value to be converted.
- provider
- A IFormatProvider that supplies a System.Globalization.DateTimeFormatInfo containing culture-specific formatting information.
Returns the value returned by value.ToString(provider).
This method converts value using the information in the System.Globalization.DateTimeFormatInfo instance supplied by provider. If provider is null or if a System.Globalization.DateTimeFormatInfo cannot be obtained from provider, the string is formatted in accordance with the current system culture.
Note: See DateTime.ToString.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0