Java Calendar Month getFirstDayOfMonth(Calendar cal)

Here you can find the source of getFirstDayOfMonth(Calendar cal)

Description

get First Day Of Month

License

Apache License

Declaration

public static String getFirstDayOfMonth(Calendar cal) 

Method Source Code

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

import java.util.Calendar;

public class Main {

    public static String getFirstDayOfMonth(Calendar cal) {
        return cal.get(Calendar.YEAR) + (cal.get(Calendar.MONTH) + 1) + "01";
    }//from w  w w  .  j a  va 2 s. c o m
}

Related

  1. getCalDayofMonth(Date calendarDay)
  2. getDayOfMonthPostfix(Calendar cal)
  3. getDaysInMonth(Calendar cal)
  4. getFirstDateOfMonth(Calendar calendar)
  5. getFirstDayOfMonth(Calendar c)
  6. getFirstDayOfMonth(final Calendar calendar, final Date date)
  7. getLastDateOfMonth(Calendar calendar)
  8. getLastDayOfMonth(Calendar c)
  9. getLastDayOfMonth(Calendar c)