NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DateTime.ToShortDateString

Converts the date value of this instance to a String.

[Visual Basic]
Public Function ToShortDateString() As String
[C#]
public string ToShortDateString();
[C++]
public: String* ToShortDateString();
[JScript]
public function ToShortDateString() : String;

Return Value

A string value that contains the date represented by this instance.

Remarks

The ToShortDateString method converts the date value to a string value and formats the return value determined by the InvariantCulture The format is "mm/dd/yy", where:

To Format a DateTime using the CurrentCulture, use Format

See Also

DateTime Structure | DateTime Members | System Namespace | String | DateTimeFormat | CultureInfo | Calendar | DateTimeFormatInfo