title: How to use Apache DateUtils to get previous month from first day to last day with time [JAVA]?
body: <p>If the input is today(June 7), then it should give me May 1 12:00 AM to May 31, 11:59 PM.
  I was using Calendar but I want to use DateUtils.</p>
  
  <pre><code>Calendar calendar = Calendar.getInstance();
  calendar.set(Calendar.DAY_OF_MONTH, -1);
  calendar.set(Calendar.HOUR,23);
  calendar.set(Calendar.MINUTE,59);
  calendar.set(Calendar.SECOND,59);
  System.out.println("Last date of month: " + calendar.getTime());
  
  
  calendar.set(Calendar.DAY_OF_MONTH, 1);
  calendar.set(Calendar.HOUR, 12);
  calendar.set(Calendar.MINUTE,00);
  calendar.set(Calendar.SECOND,00);
  System.out.println("fir stdate of month: " + calendar.getTime());
  </code></pre>