Mono Class Library: System.DateTime Overview | Members

System.DateTime.ToShortDateString Method

Converts the date denoted by the current instance to its equivalent short date string representation. [Edit]

public string ToShortDateString ()

Returns

A string containing the same value as a string returned by DateTime.ToString ("d", null ). [Edit]

Remarks

The value of the current instance is formatted using the short date format specifier, 'd'.

Note:

This format uses the culture of the current thread. To specify formatting using a different culture, use DateTime.ToString .

For more information regarding the short date specifier, see System.Globalization.DateTimeFormatInfo .

[Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0