Java Day From isDefaultWorkingDay(Date date)

Here you can find the source of isDefaultWorkingDay(Date date)

Description

is Default Working Day

License

Open Source License

Declaration

public static final boolean isDefaultWorkingDay(Date date) 

Method Source Code

//package com.java2s;

import java.util.*;

public class Main {

    public static final boolean isDefaultWorkingDay(Date date) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);// w w  w  .  j  av  a2  s .  co m
        int week = calendar.get(Calendar.DAY_OF_WEEK);
        return !(week == 7 || week == 1);
    }
}

Related

  1. getNoonOfDay(Date day)
  2. getPlusDay(String _oneDay, int _aFewDays)
  3. getServerOffset(boolean useDaylightSavingTime)
  4. getTimeField(Date day, int field)
  5. isBusinessDay(int dateIntToCheck)
  6. isOneDayZeroPoint(Date date)
  7. nextDay(Date date)
  8. nextDay(Date date, int day)
  9. startOfDay(Date date)