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

Converts the time value of this instance to a String.

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

Return Value

A string value containing the time value represented by this instance.

Remarks

The ToLongTimeString method converts the time value to a string value, then the format of the return value is determined by the InvariantCulture For example, the English (United States) format is "hh:mm:ss PP", where:

To Format a DateTime using the CurrentCulture, use Format

See Also

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