LocalDate.WithDayOfYear(Int32) Method

Definition

Returns a copy of this LocalDate with the day-of-year altered.

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

Parameters

dayOfYear
Int32

the day-of-year to set in the result, from 1 to 365-366

Returns

a LocalDate based on this date with the requested day, not null

Attributes

Remarks

To be added.

Java reference for java.time.LocalDate.withDayOfYear.

Applies to