The following code enables you to find the first and last day of a month in your JAVA code. package others; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class DateTest { /** * @param args */ public static void main(String[] args) { Date dt = null; // Get the last day of Feb. 2012 dt ...