MonthDay.WithDayOfMonth(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.
Returns a copy of this MonthDay with the day-of-month altered.
[Android.Runtime.Register("withDayOfMonth", "(I)Ljava/time/MonthDay;", "", ApiSince=26)]
public Java.Time.MonthDay? WithDayOfMonth(int dayOfMonth);
[<Android.Runtime.Register("withDayOfMonth", "(I)Ljava/time/MonthDay;", "", ApiSince=26)>]
member this.WithDayOfMonth : int -> Java.Time.MonthDay
Parameters
- dayOfMonth
- Int32
the day-of-month to set in the return month-day, from 1 to 31
Returns
a MonthDay based on this month-day with the requested day, not null
- Attributes
Remarks
Returns a copy of this MonthDay with the day-of-month altered. This returns a month-day with the specified day-of-month. If the day-of-month is invalid for the month, an exception is thrown. This instance is immutable and unaffected by this method call.
Java reference for java.time.MonthDay.withDayOfMonth.