I need to parse the string "October 2015"
but I´m getting a java.text.ParseException
. I've been looking for an answer but all the examples I've seen include the "day" within the string. I need to convert this string without specifying the day.
This is my code:
SimpleDateFormat format = new SimpleDateFormat("MMMM yyyy");
System.out.println("La fecha despues de convertida " + format.parse(search.getFecha()));
And this is the exception:
java.text.ParseException: Unparseable date: "October 2015"