Java Calendar Month convertRemoveAfterMonth(Calendar cal)

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

Description

convert Remove After Month

License

LGPL

Declaration

public static Calendar convertRemoveAfterMonth(Calendar cal) 

Method Source Code

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

import java.util.Calendar;

public class Main {
    public static Calendar convertRemoveAfterMonth(Calendar cal) {
        Calendar outCal = Calendar.getInstance();
        outCal.set(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), 1, 0, 0, 0);
        return outCal;
    }/*from www  .ja  v a 2s.com*/
}

Related

  1. calendarMonthToInt(int calendarMonth)
  2. calToLastDayOfMonth(Calendar c)
  3. endOfMonth(Calendar calendar)
  4. floorDayOfMonth(Calendar cal)
  5. getCalDayofMonth(Date calendarDay)
  6. getDayOfMonthPostfix(Calendar cal)