public String getContributionDate() {
DateFormat outputFormat = new SimpleDateFormat("MMMM dd, yyyy");
DateFormat inputFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSX", Locale.US);
Date date;
try {
date = inputFormat.parse("2008-04-07T00:00:00.000Z");
return outputFormat.format(date);
} catch (ParseException e) {
throw new RuntimeException(e);
}
}
/** Output **/ April 04, 2022