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.ToShortTimeString

Converts the time value of the instance to a String.

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

Return Value

Returns a string value containing the time that this instance represents.

Remarks

The ToShortTimeString method converts the time value to a string value and formats the return value determined by the InvariantCulture. The format is "hh:mm", where:

To Format a DateTime using the CurrentCulture, use Format

See Also

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