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[];
String array that contains all the date and time options for the specified format.
Exception Type | Condition |
---|---|
ArgumentException | If the format is not one of the valid format characters. |
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.
DateTime Structure | DateTime Members | System Namespace | DateTime.GetAllDateTimes Overload List | String | Char