getFormattedDateTime static method
Implementation
static String getFormattedDateTime(String rawDateTime) {
// Parse the string to DateTime
DateTime dateTime = DateTime.parse(rawDateTime);
// Format the DateTime
return DateFormat("d MMM yy, hh:mm a").format(dateTime);
}