I am getting date as String MMMM yyyy (e.g. August 2014). Now i need this to be converted into the last date of the month (2014-08-30). Any guidance would help me. I am doing like dis:
 String birthDate = "MARCH 2014"; 
formatter = new SimpleDateFormat("MMMM yyyy"); 
birth = (Date) formatter.parse(birthDate); // birtDate is a string 
System.out.println("Default date format " + birth); 
//this gives me Default date format Sat Mar 01 00:00:00 PST 2014
 
    