DateFormat.GetInstanceForSkeleton Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetInstanceForSkeleton(String) |
<strong>[icu]</strong> Returns a |
GetInstanceForSkeleton(String, ULocale) |
<strong>[icu]</strong> Returns a |
GetInstanceForSkeleton(String, Locale) |
<strong>[icu]</strong> Returns a |
GetInstanceForSkeleton(Calendar, String, ULocale) |
<strong>[icu]</strong> Creates a |
GetInstanceForSkeleton(Calendar, String, Locale) |
<strong>[icu]</strong> Creates a |
GetInstanceForSkeleton(String)
<strong>[icu]</strong> Returns a DateFormat
object that can be used to format dates and times in
the default locale.
[Android.Runtime.Register("getInstanceForSkeleton", "(Ljava/lang/String;)Landroid/icu/text/DateFormat;", "", ApiSince=24)]
public static Android.Icu.Text.DateFormat? GetInstanceForSkeleton (string? skeleton);
[<Android.Runtime.Register("getInstanceForSkeleton", "(Ljava/lang/String;)Landroid/icu/text/DateFormat;", "", ApiSince=24)>]
static member GetInstanceForSkeleton : string -> Android.Icu.Text.DateFormat
Parameters
- skeleton
- String
The skeleton that selects the fields to be formatted. (Uses the
DateTimePatternGenerator
.) This can be DateFormat#ABBR_MONTH
,
DateFormat#MONTH_WEEKDAY_DAY
, etc.
Returns
- Attributes
Remarks
<strong>[icu]</strong> Returns a DateFormat
object that can be used to format dates and times in the default locale.
Java documentation for android.icu.text.DateFormat.getInstanceForSkeleton(java.lang.String)
.
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
GetInstanceForSkeleton(String, ULocale)
<strong>[icu]</strong> Returns a DateFormat
object that can be used to format dates and times in
the given locale.
[Android.Runtime.Register("getInstanceForSkeleton", "(Ljava/lang/String;Landroid/icu/util/ULocale;)Landroid/icu/text/DateFormat;", "", ApiSince=24)]
public static Android.Icu.Text.DateFormat? GetInstanceForSkeleton (string? skeleton, Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register("getInstanceForSkeleton", "(Ljava/lang/String;Landroid/icu/util/ULocale;)Landroid/icu/text/DateFormat;", "", ApiSince=24)>]
static member GetInstanceForSkeleton : string * Android.Icu.Util.ULocale -> Android.Icu.Text.DateFormat
Parameters
- skeleton
- String
The skeleton that selects the fields to be formatted. (Uses the
DateTimePatternGenerator
.) This can be DateFormat#ABBR_MONTH
,
DateFormat#MONTH_WEEKDAY_DAY
, etc.
- locale
- ULocale
The locale for which the date/time format is desired.
Returns
- Attributes
Remarks
<strong>[icu]</strong> Returns a DateFormat
object that can be used to format dates and times in the given locale.
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
GetInstanceForSkeleton(String, Locale)
<strong>[icu]</strong> Returns a DateFormat
object that can be used to format dates and times in
the given locale.
[Android.Runtime.Register("getInstanceForSkeleton", "(Ljava/lang/String;Ljava/util/Locale;)Landroid/icu/text/DateFormat;", "", ApiSince=24)]
public static Android.Icu.Text.DateFormat? GetInstanceForSkeleton (string? skeleton, Java.Util.Locale? locale);
[<Android.Runtime.Register("getInstanceForSkeleton", "(Ljava/lang/String;Ljava/util/Locale;)Landroid/icu/text/DateFormat;", "", ApiSince=24)>]
static member GetInstanceForSkeleton : string * Java.Util.Locale -> Android.Icu.Text.DateFormat
Parameters
- skeleton
- String
The skeleton that selects the fields to be formatted. (Uses the
DateTimePatternGenerator
.) This can be DateFormat#ABBR_MONTH
,
DateFormat#MONTH_WEEKDAY_DAY
, etc.
- locale
- Locale
The locale for which the date/time format is desired.
Returns
- Attributes
Remarks
<strong>[icu]</strong> Returns a DateFormat
object that can be used to format dates and times in the given locale.
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
GetInstanceForSkeleton(Calendar, String, ULocale)
<strong>[icu]</strong> Creates a DateFormat
object that can be used to format dates and
times in the calendar system specified by cal
.
[Android.Runtime.Register("getInstanceForSkeleton", "(Landroid/icu/util/Calendar;Ljava/lang/String;Landroid/icu/util/ULocale;)Landroid/icu/text/DateFormat;", "", ApiSince=24)]
public static Android.Icu.Text.DateFormat? GetInstanceForSkeleton (Android.Icu.Util.Calendar? cal, string? skeleton, Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register("getInstanceForSkeleton", "(Landroid/icu/util/Calendar;Ljava/lang/String;Landroid/icu/util/ULocale;)Landroid/icu/text/DateFormat;", "", ApiSince=24)>]
static member GetInstanceForSkeleton : Android.Icu.Util.Calendar * string * Android.Icu.Util.ULocale -> Android.Icu.Text.DateFormat
Parameters
- cal
- Calendar
The calendar system for which a date/time format is desired.
- skeleton
- String
The skeleton that selects the fields to be formatted. (Uses the
DateTimePatternGenerator
.) This can be
DateFormat#ABBR_MONTH
, DateFormat#MONTH_WEEKDAY_DAY
,
etc.
- locale
- ULocale
The locale for which the date/time format is desired.
Returns
- Attributes
Remarks
<strong>[icu]</strong> Creates a DateFormat
object that can be used to format dates and times in the calendar system specified by cal
.
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
GetInstanceForSkeleton(Calendar, String, Locale)
<strong>[icu]</strong> Creates a DateFormat
object that can be used to format dates and
times in the calendar system specified by cal
.
[Android.Runtime.Register("getInstanceForSkeleton", "(Landroid/icu/util/Calendar;Ljava/lang/String;Ljava/util/Locale;)Landroid/icu/text/DateFormat;", "", ApiSince=24)]
public static Android.Icu.Text.DateFormat? GetInstanceForSkeleton (Android.Icu.Util.Calendar? cal, string? skeleton, Java.Util.Locale? locale);
[<Android.Runtime.Register("getInstanceForSkeleton", "(Landroid/icu/util/Calendar;Ljava/lang/String;Ljava/util/Locale;)Landroid/icu/text/DateFormat;", "", ApiSince=24)>]
static member GetInstanceForSkeleton : Android.Icu.Util.Calendar * string * Java.Util.Locale -> Android.Icu.Text.DateFormat
Parameters
- cal
- Calendar
The calendar system for which a date/time format is desired.
- skeleton
- String
The skeleton that selects the fields to be formatted. (Uses the
DateTimePatternGenerator
.) This can be
DateFormat#ABBR_MONTH
, DateFormat#MONTH_WEEKDAY_DAY
,
etc.
- locale
- Locale
The locale for which the date/time format is desired.
Returns
- Attributes
Remarks
<strong>[icu]</strong> Creates a DateFormat
object that can be used to format dates and times in the calendar system specified by cal
.
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.