TemporalAdjusters.FirstInMonth(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 first in month adjuster, which returns a new date in the same month with the first matching day-of-week.
[Android.Runtime.Register("firstInMonth", "(Ljava/time/DayOfWeek;)Ljava/time/temporal/TemporalAdjuster;", "", ApiSince=26)]
public static Java.Time.Temporal.ITemporalAdjuster? FirstInMonth (Java.Time.DayOfWeek? dayOfWeek);
[<Android.Runtime.Register("firstInMonth", "(Ljava/time/DayOfWeek;)Ljava/time/temporal/TemporalAdjuster;", "", ApiSince=26)>]
static member FirstInMonth : 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 first in month adjuster, which returns a new date in the same month with the first matching day-of-week. This is used for expressions like 'first Tuesday in March'.
The ISO calendar system behaves as follows:<br> The input 2011-12-15 for (MONDAY) will return 2011-12-05.<br> The input 2011-12-15 for (FRIDAY) will return 2011-12-02.<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.firstInMonth(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.