Share via


SimpleDateFormat.ToLocalizedPattern Method

Definition

Return a localized pattern string describing this date format.

[Android.Runtime.Register("toLocalizedPattern", "()Ljava/lang/String;", "GetToLocalizedPatternHandler", ApiSince=24)]
public virtual string? ToLocalizedPattern ();
[<Android.Runtime.Register("toLocalizedPattern", "()Ljava/lang/String;", "GetToLocalizedPatternHandler", ApiSince=24)>]
abstract member ToLocalizedPattern : unit -> string
override this.ToLocalizedPattern : unit -> string

Returns

Attributes

Remarks

Return a localized pattern string describing this date format.

<b>Note:</b> This implementation depends on DateFormatSymbols#getLocalPatternChars() to get localized format pattern characters. ICU does not include localized pattern character data, therefore, unless user sets localized pattern characters manually, this method returns the same result as #toPattern().

Java documentation for android.icu.text.SimpleDateFormat.toLocalizedPattern().

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