Java tutorial
//package com.java2s; import java.util.Calendar; public class Main { public static void toBeginOfMonth(Calendar cal) { cal.set(Calendar.DAY_OF_MONTH, 1); } }