DateFormat.GetDateFormatOrder(Context) Method

Definition

Gets the current date format stored as a char array.

[Android.Runtime.Register("getDateFormatOrder", "(Landroid/content/Context;)[C", "")]
public static char[]? GetDateFormatOrder (Android.Content.Context? context);
[<Android.Runtime.Register("getDateFormatOrder", "(Landroid/content/Context;)[C", "")>]
static member GetDateFormatOrder : Android.Content.Context -> char[]

Parameters

context
Context

Returns

Char[]
Attributes

Remarks

Gets the current date format stored as a char array. Returns a 3 element array containing the day ('d'), month ('M'), and year ('y')) in the order specified by the user's format preference. Note that this order is only appropriate for all-numeric dates; spelled-out (MEDIUM and LONG) dates will generally contain other punctuation, spaces, or words, not just the day, month, and year, and not necessarily in the same order returned here.

Java documentation for android.text.format.DateFormat.getDateFormatOrder(android.content.Context).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to