Here you can find the source of getMonthBegin(Calendar c)
public static Calendar getMonthBegin(Calendar c)
//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(); } }