次の方法で共有


Date.Month Property

Definition

Caution

deprecated

Returns a number representing the month that contains or begins with the instant in time represented by this Date object. -or- Sets the month of this date to the specified value.

[System.Obsolete("deprecated")]
public virtual int Month { [Android.Runtime.Register("getMonth", "()I", "GetGetMonthHandler")] get; [Android.Runtime.Register("setMonth", "(I)V", "GetSetMonth_IHandler")] set; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getMonth", "()I", "GetGetMonthHandler")>]
[<set: Android.Runtime.Register("setMonth", "(I)V", "GetSetMonth_IHandler")>]
member this.Month : int with get, set

Property Value

the month represented by this date.

Attributes

Remarks

Property getter documentation:

Returns a number representing the month that contains or begins with the instant in time represented by this Date object. The value returned is between 0 and 11, with the value 0 representing January.

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

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

Property setter documentation:

Sets the month of this date to the specified value. This Date object is modified so that it represents a point in time within the specified month, with the year, date, hour, minute, and second the same as before, as interpreted in the local time zone. If the date was October 31, for example, and the month is set to June, then the new date will be treated as if it were on July 1, because June has only 30 days.

This member is deprecated. As of JDK version 1.1, replaced by Calendar.set(Calendar.MONTH, int month).

Java documentation for java.util.Date.setMonth(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