Java Day End isInWorkDay(Calendar start)

Here you can find the source of isInWorkDay(Calendar start)

Description

Determines whether or not the date falls on a work day (Mon-Fri)

License

Apache License

Declaration

public static boolean isInWorkDay(Calendar start) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.*;

public class Main {
    /**/*w  w  w. j a v a 2s.c  om*/
     * Determines whether or not the date falls on a work day (Mon-Fri)
     */
    public static boolean isInWorkDay(Calendar start) {
        final int dayOfWeek = start.get(Calendar.DAY_OF_WEEK);
        return dayOfWeek > 1 && dayOfWeek < 7;
    }
}

Related

  1. isEndOfMonth(Date nowday)
  2. isEndOfSeason(Date date)
  3. isEqualYMD(Date begindate, Date enddate)
  4. isIncludeDay(Date start, Date end, Date target)
  5. isInRange(Date myDate, Date dateStart, Date dateEnd)
  6. isMoreThenMonth(Date startDate, Date enDate)
  7. isNowBetween(Date start, Date end)
  8. isSameDay(Calendar cal1, Calendar cal2)
  9. isSameDay(final Calendar calendar1, final Calendar calendar2)