Java.Util.Calendar.GetDisplayName Method
Returns a human-readable string for the value of field using the given style and locale.

Syntax

[Android.Runtime.Register("getDisplayName", "(IILjava/util/Locale;)Ljava/lang/String;", "GetGetDisplayName_IILjava_util_Locale_Handler")]
public virtual string GetDisplayName (int p0, int p1, Locale p2)

Parameters

field
the field
style
SHORT or LONG
locale
the locale

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif locale == null
Java.Lang.IllegalArgumentExceptionif field or style is invalid

Remarks

Returns a human-readable string for the value of field using the given style and locale. If no string is available, returns null. The value is retrieved by invoking get(field).

For example, getDisplayName(MONTH, SHORT, Locale.US) will return "Jan" while getDisplayName(MONTH, LONG, Locale.US) will return "January".

[Android Documentation]

Requirements

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