Android Week Get getFirstDayOfFirstWeekOfMonth(final Calendar cal)

Here you can find the source of getFirstDayOfFirstWeekOfMonth(final Calendar cal)

Description

get First Day Of First Week Of Month

Declaration

public static int getFirstDayOfFirstWeekOfMonth(final Calendar cal) 

Method Source Code

//package com.java2s;
import static java.util.Calendar.*;

import java.util.Calendar;

public class Main {
    public static int getFirstDayOfFirstWeekOfMonth(final Calendar cal) {
        Calendar c = (Calendar) cal.clone();
        c.set(DAY_OF_MONTH, 1);/*w  ww  .  java2 s  . c o m*/
        return c.get(DAY_OF_WEEK);
    }
}

Related

  1. getWeeksSinceEpochFromJulianDay(int julianDay, int firstDayOfWeek)
  2. getStartAndEndDatesForWeek(Calendar currentDate, Calendar startDate, Calendar endDate)
  3. getDaysOfWeekNames()
  4. getDaysOfWeekNames(Locale l, int len)
  5. getEnglishDayInWeek(Date date)