Java LocalDate Calculate getLocalDateBydayAndWeek(LocalDate localDate, int weekNumber, int dayNumber)

Here you can find the source of getLocalDateBydayAndWeek(LocalDate localDate, int weekNumber, int dayNumber)

Description

get Local Date Byday And Week

License

Open Source License

Declaration

public static LocalDate getLocalDateBydayAndWeek(LocalDate localDate, int weekNumber, int dayNumber) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.time.*;

import java.time.temporal.TemporalAdjusters;

public class Main {

    public static LocalDate getLocalDateBydayAndWeek(LocalDate localDate, int weekNumber, int dayNumber) {
        return localDate.with(TemporalAdjusters.dayOfWeekInMonth(weekNumber, DayOfWeek.of(dayNumber)));
    }//from   ww  w  .j av a  2  s  .  c o m
}

Related

  1. getDateStart(LocalDate localDate)
  2. getEndDateOfMonth(LocalDate date)
  3. getFirstDayOfTheMonth(final LocalDate date)
  4. getLastDayInMonth(LocalDate localDate)
  5. getLastDayOfTheQuarter(final LocalDate date)
  6. getLrsLocalDate(String lbdcDate)
  7. getMax(@Nonnull final LocalDate aDate1, @Nonnull final LocalDate aDate2)
  8. getNextNoWeekedDay(LocalDate today)
  9. getQuarterBounds(final LocalDate date)