Java tutorial
//package com.java2s; import java.util.Calendar; public class Main { public static boolean checkFirstDayOfMonth() { Calendar c = Calendar.getInstance(); return (c.get(Calendar.DATE) == 1); } }