TemporalAdjusters.LastInMonth(DayOfWeek) 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 the last in month adjuster, which returns a new date in the same month with the last matching day-of-week.
[Android.Runtime.Register("lastInMonth", "(Ljava/time/DayOfWeek;)Ljava/time/temporal/TemporalAdjuster;", "", ApiSince=26)]
public static Java.Time.Temporal.ITemporalAdjuster? LastInMonth (Java.Time.DayOfWeek? dayOfWeek);
[<Android.Runtime.Register("lastInMonth", "(Ljava/time/DayOfWeek;)Ljava/time/temporal/TemporalAdjuster;", "", ApiSince=26)>]
static member LastInMonth : Java.Time.DayOfWeek -> Java.Time.Temporal.ITemporalAdjuster
Parameters
- dayOfWeek
- DayOfWeek
the day-of-week, not null
Returns
the first in month adjuster, not null
- Attributes
Remarks
Returns the last in month adjuster, which returns a new date in the same month with the last matching day-of-week. This is used for expressions like 'last Tuesday in March'.
The ISO calendar system behaves as follows:<br> The input 2011-12-15 for (MONDAY) will return 2011-12-26.<br> The input 2011-12-15 for (FRIDAY) will return 2011-12-30.<br>
The behavior is suitable for use with most calendar systems. It uses the DAY_OF_WEEK
and DAY_OF_MONTH
fields and the DAYS
unit, and assumes a seven day week.
Java documentation for java.time.temporal.TemporalAdjusters.lastInMonth(java.time.DayOfWeek)
.
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.