Language

YearMonth.AtDay(Int32) Method

Definition

Combines this year-month with a day-of-month to create a LocalDate.

[Android.Runtime.Register("atDay", "(I)Ljava/time/LocalDate;", "", ApiSince=26)]
public Java.Time.LocalDate? AtDay(int dayOfMonth);
[<Android.Runtime.Register("atDay", "(I)Ljava/time/LocalDate;", "", ApiSince=26)>]
member this.AtDay : int -> Java.Time.LocalDate

Parameters

dayOfMonth
Int32

the day-of-month to use, from 1 to 31

Returns

the date formed from this year-month and the specified day, not null

Attributes

Remarks

Combines this year-month with a day-of-month to create a LocalDate. This returns a LocalDate formed from this year-month and the specified day-of-month. The day-of-month value must be valid for the year-month.

LocalDate date = year.atMonth(month).atDay(day);

Java reference for java.time.YearMonth.atDay.

Applies to