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.GetDateTimeFormats (Char, IServiceObjectProvider)

Returns a String array containing all of the known date and time options formatted for the specified format and culture.

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

Parameters

format
A default format.
isop
[To be supplied.]

Return Value

A string array containing this instance formatted as specified.

Remarks

The GetAllDateTimes method contains both:

The strings returned are properly formatted date and time strings for the current instance of DateTime. (See CurrentCulture for addition information.)

The format parameter calls the default characters ('F', 'G', 'D', etc.) at the top of the DateTimeFormatInfo.

The isop parameter provides the IServiceObjectProvider instance, which provides the DateTimeFormatInfo instance.

See Also

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