Language

DateTimeFormatterBuilder.GetLocalizedDateTimePattern Method

Definition

Overloads

Name Description
GetLocalizedDateTimePattern(String, IChronology, Locale)

Returns the formatting pattern for the requested template for a locale and chronology.

GetLocalizedDateTimePattern(FormatStyle, FormatStyle, IChronology, Locale)

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

GetLocalizedDateTimePattern(String, IChronology, Locale)

Returns the formatting pattern for the requested template for a locale and chronology.

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

Parameters

requestedTemplate
String

the requested template, not null

chrono
IChronology

the Chronology, non-null

locale
Locale

the locale, non-null

Returns

the locale and Chronology specific formatting pattern

Attributes

Remarks

The locale and chronology are used to look up the format for the requested template. See AppendLocalized(String) for details of the template.

Java reference for java.time.format.DateTimeFormatterBuilder.getLocalizedDateTimePattern.

Applies to

GetLocalizedDateTimePattern(FormatStyle, FormatStyle, IChronology, Locale)

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