Share via


DateTimePatternGenerator.GetDateTimeFormat(Int32) Method

Definition

Getter corresponding to setDateTimeFormat.

[Android.Runtime.Register("getDateTimeFormat", "(I)Ljava/lang/String;", "GetGetDateTimeFormat_IHandler", ApiSince=35)]
public virtual string? GetDateTimeFormat (int style);
[<Android.Runtime.Register("getDateTimeFormat", "(I)Ljava/lang/String;", "GetGetDateTimeFormat_IHandler", ApiSince=35)>]
abstract member GetDateTimeFormat : int -> string
override this.GetDateTimeFormat : int -> string

Parameters

style
Int32

one of DateFormat.FULL..DateFormat.SHORT. An exception will be thrown if out of range.

Returns

the current dateTimeFormat for the specified style.

Attributes

Remarks

Getter corresponding to setDateTimeFormat.

Java documentation for android.icu.text.DateTimePatternGenerator.getDateTimeFormat(int).

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