MonthDay.AtYear(Int32) 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.
Combines this month-day with a year to create a LocalDate.
[Android.Runtime.Register("atYear", "(I)Ljava/time/LocalDate;", "", ApiSince=26)]
public Java.Time.LocalDate? AtYear(int year);
[<Android.Runtime.Register("atYear", "(I)Ljava/time/LocalDate;", "", ApiSince=26)>]
member this.AtYear : int -> Java.Time.LocalDate
Parameters
- year
- Int32
the year to use, from MIN_YEAR to MAX_YEAR
Returns
the local date formed from this month-day and the specified year, not null
- Attributes
Remarks
Combines this month-day with a year to create a LocalDate. This returns a LocalDate formed from this month-day and the specified year. A month-day of February 29th will be adjusted to February 28th in the resulting date if the year is not a leap year. This instance is immutable and unaffected by this method call.
Java reference for java.time.MonthDay.atYear.