Java Week Day dayOfWeekRus(Date d)

Here you can find the source of dayOfWeekRus(Date d)

Description

day Of Week Rus

License

Open Source License

Parameter

Parameter Description
d from which to calculate this day of week

Return

integer for day of week from 1 to 7

Declaration

public static int dayOfWeekRus(Date d) 

Method Source Code

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

import java.util.*;

public class Main {
    /**/*from  w w w.ja va 2  s.  c  o  m*/
     * @param d from which to calculate this day of week
     * @return integer for day of week from 1 to 7
     */
    public static int dayOfWeekRus(Date d) {
        // TODO check
        Calendar date = new GregorianCalendar();
        date.setTime(d);
        int dow = date.get(Calendar.DAY_OF_WEEK);
        dow = dow == 1 ? 7 : dow - 1;
        return dow;
    }
}

Related

  1. dayOfWeek()
  2. dayOfWeek(Date pWallDate)
  3. dayOfWeek(final Date date)
  4. dayOfWeek(String pFormerStr)
  5. dayOfWeekFix(Calendar calendar)
  6. firstDayOfWeek(int year, int month)
  7. getAPastDayOfTheWeek(String dayToGet)
  8. getBothDayOfWeek(String str, int week)
  9. getCurrentDayOfWeekArabia()