Sdílet prostřednictvím


Date.Day Property

Definition

Caution

deprecated

Returns the day of the week represented by this date.

[System.Obsolete("deprecated")]
public virtual int Day { [Android.Runtime.Register("getDay", "()I", "GetGetDayHandler")] get; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getDay", "()I", "GetGetDayHandler")>]
member this.Day : int

Property Value

the day of the week represented by this date.

Attributes

Remarks

Returns the day of the week represented by this date. The returned value (0 = Sunday, 1 = Monday, 2 = Tuesday, 3 = Wednesday, 4 = Thursday, 5 = Friday, 6 = Saturday) represents the day of the week that contains or begins with the instant in time represented by this Date object, as interpreted in the local time zone.

This member is deprecated. As of JDK version 1.1, replaced by Calendar.get(Calendar.DAY_OF_WEEK).

Java documentation for java.util.Date.getDay().

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