DateTimeFormatterBuilder.GetLocalizedDateTimePattern Method

Definition

Gets the formatting pattern for a localized date and time style.

[Android.Runtime.Register("getLocalizedDateTimePattern", "(Ljava/time/format/FormatStyle;Ljava/time/format/FormatStyle;Ljava/time/chrono/Chronology;Ljava/util/Locale;)Ljava/lang/String;", "", ApiSince=26)]
public static string? GetLocalizedDateTimePattern(Java.Time.Format.FormatStyle? dateStyle, Java.Time.Format.FormatStyle? timeStyle, Java.Time.Chrono.IChronology? chrono, Java.Util.Locale? locale);
[<Android.Runtime.Register("getLocalizedDateTimePattern", "(Ljava/time/format/FormatStyle;Ljava/time/format/FormatStyle;Ljava/time/chrono/Chronology;Ljava/util/Locale;)Ljava/lang/String;", "", ApiSince=26)>]
static member GetLocalizedDateTimePattern : Java.Time.Format.FormatStyle * Java.Time.Format.FormatStyle * Java.Time.Chrono.IChronology * Java.Util.Locale -> string

Parameters

dateStyle
FormatStyle

the date style, null if no date is required

timeStyle
FormatStyle

the time style, null if no time is required

chrono
IChronology

the chronology, not null

locale
Locale

the locale, not null

Returns

the localized date-time pattern, not null

Attributes

Remarks

The pattern is obtained from the locale and chronology.

Applies to