Java Calendar Month getMonthBegin(Calendar c)

Here you can find the source of getMonthBegin(Calendar c)

Description

get Month Begin

License

Open Source License

Declaration

public static Calendar getMonthBegin(Calendar c) 

Method Source Code

//package com.java2s;

import java.util.Calendar;

public class Main {

    public static Calendar getMonthBegin(Calendar c) {
        Calendar r = getCurCalendar();
        r.set(c.get(Calendar.YEAR), c.get(Calendar.MONTH), 1, 0, 0, 0);
        return (r);
    }/*from   ww  w . j a v a2s  .  c  om*/

    public static Calendar getCurCalendar() {
        return Calendar.getInstance();
    }
}

Related

  1. getLastDayOfMonth(Calendar calendar)
  2. getLastMonthDays(Calendar c)
  3. getMonth(Calendar c)
  4. getMonth(Calendar cal)
  5. getMonth(Calendar calendar)
  6. getMonthBegin(Calendar calendar)
  7. getMonthName(Calendar cal)
  8. getMonthStart(Calendar c)
  9. getMonthStart(Calendar cal)