I get a string value of time in GMT format like this: "2000-01-01T12:00:00.000Z" and I want to convert it to some readable date/time format. I don't know how to do it
I'm using the following code but it doesn't seems to work
schedules = matrix.get("schedules").getAsJsonArray();
schedules_array = schedules.get(0).getAsJsonObject();
final String open = schedules_array.get("open").getAsString();
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
try {
Date date = format.parse(open);
Log.d("OPEN", String.valueOf(date));
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}