Here you can find the source of convertRemoveAfterMonth(Calendar cal)
public static Calendar convertRemoveAfterMonth(Calendar cal)
//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*/ }