Here you can find the source of getStartDateOfCurrMonth()
public static Date getStartDateOfCurrMonth()
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.Date; public class Main { public static Date getStartDateOfCurrMonth() { Calendar now = Calendar.getInstance(); now.set(now.get(Calendar.YEAR), now.get(Calendar.MONTH), 1); return now.getTime(); }/*from w w w .j a v a 2 s. c om*/ }