Partager via


DateUtils.GetDayOfWeekString(Int32, AbbreviationLength) Method

Definition

Caution

deprecated

Return a string for the day of the week.

[Android.Runtime.Register("getDayOfWeekString", "(II)Ljava/lang/String;", "")]
[System.Obsolete("deprecated")]
public static string? GetDayOfWeekString (int dayOfWeek, Android.Text.Format.AbbreviationLength abbrev);
[<Android.Runtime.Register("getDayOfWeekString", "(II)Ljava/lang/String;", "")>]
[<System.Obsolete("deprecated")>]
static member GetDayOfWeekString : int * Android.Text.Format.AbbreviationLength -> string

Parameters

dayOfWeek
Int32

One of Calendar#SUNDAY Calendar.SUNDAY, Calendar#MONDAY Calendar.MONDAY, etc.

abbrev
AbbreviationLength

One of #LENGTH_LONG, #LENGTH_SHORT, #LENGTH_MEDIUM, or #LENGTH_SHORTEST. Note that in most languages, #LENGTH_SHORT will return the same as #LENGTH_MEDIUM. Undefined lengths will return #LENGTH_MEDIUM but may return something different in the future.

Returns

Attributes

Exceptions

if the dayOfWeek is out of bounds.

Remarks

Return a string for the day of the week.

This member is deprecated. Use java.text.SimpleDateFormat instead.

Java documentation for android.text.format.DateUtils.getDayOfWeekString(int, 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