Java Week getWeekInMonth()

Here you can find the source of getWeekInMonth()

Description

get Week In Month

License

Open Source License

Declaration

public static int getWeekInMonth() 

Method Source Code

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

import java.util.Calendar;

public class Main {

    public static int getWeekInMonth() {
        Calendar c = Calendar.getInstance();
        int week = c.get(Calendar.WEEK_OF_MONTH);
        return week;
    }//from   w  w  w . j  av  a 2  s.  co  m
}

Related

  1. getWeekBegin(Date date)
  2. getWeekDates(int weekOffset)
  3. getWeekFirst(String format)
  4. getWeekFromDate(String dateString)
  5. getWeekId(String date)
  6. getWeekName()
  7. getWeekNumber(String sdate)
  8. getWeekNumberFromDate(String thedate)
  9. getWeekNumByDate(String date)