{wie das JSON-String Datum Datumsformat in android
"time_slots": [
{
"id": 1,
"from_time": "2000-01-01T09:00:00.000Z",
"to_time": "2000-01-01T10:00:00.000Z",
"created_at": "2016-05-27T08:09:05.979Z",
"updated_at": "2016-05-27T08:09:05.979Z",
"status": true
},
{
"id": 2,
"from_time": "2000-01-01T10:00:00.000Z",
"to_time": "2000-01-01T11:00:00.000Z",
"created_at": "2016-05-27T08:17:43.121Z",
"updated_at": "2016-05-27T08:17:43.121Z",
"status": true
},
{
"id": 3,
"from_time": "2000-01-01T13:00:00.000Z",
"to_time": "2000-01-01T14:00:00.000Z",
"created_at": "2016-05-27T08:18:06.251Z",
"updated_at": "2016-05-27T08:18:06.251Z",
"status": true
},
{
"id": 4,
"from_time": "2000-01-01T14:00:00.000Z",
"to_time": "2000-01-01T15:00:00.000Z",
"created_at": "2016-05-27T08:18:34.752Z",
"updated_at": "2016-05-27T08:18:34.752Z",
"status": true
}
] } jemand bitte kann umwandeln können, wie JSON-String Zeit zu Zeit Format in android.I konvertieren versucht, einfach zu konvertieren mit Datumsformat SimpleDateFormat ("yyyy-mm-ddTh: m: s"); aber es funktioniert nicht. Jede Hilfe wird wirklich geschätzt.
Bitte atleast einige Benutzer tun, bevor –
doppelte Frage: http://stackoverflow.com/questions/20168647/java-text-parseexception-unparseable-date-yyyy-mm-ddthhmmss-sssz-simple – Mehta
Mögliche Duplikat von [java.text.ParseException: Nicht übertragbares Datum "JJJJ-MM-TT'T'HH: mm: ss.SSSZ" - SimpleDateFormat] (http://stackoverflow.com/questions/20168647/java-text-parseexception- unparselable-date-jjjj-mm-ddthhmmss-sssz-einfach) –