Mono Class Library: System.DateTime Overview | MembersSystem.DateTime.ToString Method |
Returns a string representation of the value of the current instance. [Edit]
|
- provider
- A IFormatProvider that supplies a System.Globalization.DateTimeFormatInfo containing culture-specific formatting information. [Edit]
A string representation of the current instance formatted using the general format specifier, ("G"). The string takes into account the formatting information in the System.Globalization.DateTimeFormatInfo instance supplied by provider. [Edit]
This version of DateTime.ToString is equivalent to DateTime.ToString ("G", provider ).
If provider is null or the System.Globalization.DateTimeFormatInfo cannot be obtained from provider, the formatting information for the current system culture is used.
Note:[Edit]The general format specifier ("G") provides the general date pattern including the long time form, equivalent to System.Globalization.DateTimeFormatInfo.ShortDatePattern combined with System.Globalization.DateTimeFormatInfo.LongTimePattern. For more information on format specifiers, see System.Globalization.DateTimeFormatInfo . For information on formatting system-supplied data types, see the IFormattable interface.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0