I have date in April 10, 1922
format, I want to convert this date to yyyy-MM-dd'T'HH:mm:ss'Z'
format, but first i want to convert this string into date.
I created a pattern for it, to convert this string to date.
private static String datePatternDOB = "MMMM d, yyyy";
dateConversionFormat = new SimpleDateFormat(datePatternDOB);
Then i parsed date.
dateConversionFormat.parse("April 10, 1922")
but got following exception.
Method threw 'java.text.ParseException' exception.
java.text.ParseException: Unparseable date: "April 15, 1932" at java.text.DateFormat.parse(DateFormat.java:358)