Java.Text.DateFormat.GetDateInstance Method
Returns a DateFormat instance for formatting and parsing dates in the specified style for the specified locale.

Syntax

[Android.Runtime.Register("getDateInstance", "(ILjava/util/Locale;)Ljava/text/DateFormat;", "")]
public static DateFormat GetDateInstance (int style, Java.Util.Locale locale)

Parameters

style
one of SHORT, MEDIUM, LONG, FULL, or DEFAULT.
locale
the locale.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif style is not one of SHORT, MEDIUM, LONG, FULL, or DEFAULT.

Remarks

Returns a DateFormat instance for formatting and parsing dates in the specified style for the specified locale.

[Android Documentation]

Requirements

Namespace: Java.Text
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1