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

Syntax

[Android.Runtime.Register("getDateInstance", "(I)Ljava/text/DateFormat;", "")]
public static DateFormat GetDateInstance (int style)

Parameters

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

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 user's default locale. See "Be wary of the default 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