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.GetAllDateTimes (Char)

OBSOLETE. Use GetDateTimeFormats instead.

[Visual Basic]
Overloads Public Function GetAllDateTimes( _
   ByVal format As Char _
) As String ()
[C#]
public string[] GetAllDateTimes(
   char format
);
[C++]
public: String* GetAllDateTimes(
   __wchar_t format
) [];
[JScript]
public function GetAllDateTimes(
   format : Char
) : String[];

Parameters

format
One of the default formats used by format.

Return Value

String array that contains all the date and time options for the specified format.

Exceptions

Exception Type Condition
ArgumentException If the format is not one of the valid format characters.

Remarks

The GetAllDateTimes method returns a string array containing all of the date and time options for the specified format and current CultureInfo. The strings are properly formatted date and time strings for the current instance of DateTime. (See CurrentCulture for addition information.)

The format parameter uses the default formats that can be used in DateTimeFormat, such as "F", "F", "D", etc.

Returns a string array containing all of the known date and time options for the specified Format and current culture.

See Also

DateTime Structure | DateTime Members | System Namespace | DateTime.GetAllDateTimes Overload List | String | Char