Java Calendar Month isFirstDayOfMonth(Calendar calendar)

Here you can find the source of isFirstDayOfMonth(Calendar calendar)

Description

is First Day Of Month

License

Apache License

Declaration

public static boolean isFirstDayOfMonth(Calendar calendar) 

Method Source Code

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

import java.util.Calendar;

public class Main {

    public static boolean isFirstDayOfMonth(Calendar calendar) {
        if (calendar.get(Calendar.DAY_OF_MONTH) == 1) {
            return true;
        }/*from w  w  w .  java  2 s  .c  o  m*/
        return false;
    }
}

Related

  1. getNumDaysInMonth(GregorianCalendar aCalendar)
  2. getStartOfMonth(Date day, Calendar cal)
  3. incrementMonth(Calendar cal)
  4. incrementMonthByVal(Calendar theCal, int val)
  5. intToCalendarMonth(int month)
  6. lastDayOfMonth(Calendar c)
  7. month(Calendar calendar)
  8. month(Calendar date)
  9. numberOfDaysInMonth(Calendar cal)