Share via


Month.FirstDayOfYear(Boolean) Method

Definition

Gets the day-of-year corresponding to the first day of this month.

[Android.Runtime.Register("firstDayOfYear", "(Z)I", "", ApiSince=26)]
public int FirstDayOfYear (bool leapYear);
[<Android.Runtime.Register("firstDayOfYear", "(Z)I", "", ApiSince=26)>]
member this.FirstDayOfYear : bool -> int

Parameters

leapYear
Boolean

true if the length is required for a leap year

Returns

the day of year corresponding to the first day of this month, from 1 to 336

Attributes

Remarks

Gets the day-of-year corresponding to the first day of this month.

This returns the day-of-year that this month begins on, using the leap year flag to determine the length of February.

Java documentation for java.time.Month.firstDayOfYear(boolean).

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