Here you can find the source of isFirstDayOfMonth()
public static boolean isFirstDayOfMonth()
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static boolean isFirstDayOfMonth() { Calendar calendar = Calendar.getInstance(); return calendar.get(Calendar.DAY_OF_MONTH) == 1; }/*from www .j av a 2 s .com*/ }