Java LocalDate Calculate getNextNoWeekedDay(LocalDate today)

Here you can find the source of getNextNoWeekedDay(LocalDate today)

Description

get Next No Weeked Day

Declaration

public static LocalDate getNextNoWeekedDay(LocalDate today) 

Method Source Code


//package com.java2s;
import java.time.*;

public class Main {
    public static LocalDate getNextNoWeekedDay(LocalDate today) {
        while (today.getDayOfWeek() == DayOfWeek.SATURDAY || today.getDayOfWeek() == DayOfWeek.SUNDAY) {
            today = today.plusDays(1);//from  ww  w.  ja va  2s .  co m
        }
        return today;
    }
}

Related

  1. getLastDayInMonth(LocalDate localDate)
  2. getLastDayOfTheQuarter(final LocalDate date)
  3. getLocalDateBydayAndWeek(LocalDate localDate, int weekNumber, int dayNumber)
  4. getLrsLocalDate(String lbdcDate)
  5. getMax(@Nonnull final LocalDate aDate1, @Nonnull final LocalDate aDate2)
  6. getQuarterBounds(final LocalDate date)
  7. getTimeDifferenceInDays(LocalDate to)
  8. getTodayAsLocalDate()
  9. getWeekOfTheYear(final LocalDate dateOfYear)