Java Calendar Week convertIntToCalendarDayOfWeek(int dayOfWeek)

Here you can find the source of convertIntToCalendarDayOfWeek(int dayOfWeek)

Description

convert Int To Calendar Day Of Week

License

Apache License

Declaration

public static int convertIntToCalendarDayOfWeek(int dayOfWeek) 

Method Source Code

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

import java.util.Calendar;

public class Main {
    public static int convertIntToCalendarDayOfWeek(int dayOfWeek) {
        return dayOfWeek == Calendar.SUNDAY ? 7 : dayOfWeek - 1;
    }/*from ww  w . j a  va  2s  .  c  om*/
}

Related

  1. endOfWeek(Calendar calendar, Date date)
  2. firstDayOfLastWeek(Calendar c)
  3. getADayOfWeek(Calendar day, int dayOfWeek)
  4. getDateOfLastDayOfWeekInMonth(Calendar calendar, int dayOfWeek)