Java Week Calculate getWeekOfDate(Date date)

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

Description

get Week Of Date

License

Open Source License

Declaration

public static int getWeekOfDate(Date date) 

Method Source Code

//package com.java2s;

import java.util.*;

public class Main {
    public static int getWeekOfDate(Date date) {
        Calendar c = Calendar.getInstance();
        c.setTime(date);// w  w w.  j a va2  s.  c  o  m
        return c.get(Calendar.DAY_OF_WEEK);
    }
}

Related

  1. getEndOfWeek(Calendar cal)
  2. getSeqWeek()
  3. getWeek(Date date)
  4. getWeekAbscissa(Class cls)
  5. getWeekNumberFromDate(Date date)
  6. getWeekOfYear(Date date, Locale locale)
  7. getWeeksAddCount(int repType, int repIndex)
  8. getWeeksInYear(int year)
  9. isSameWeekDates(Date date1, Date date2)