String time = "2017-07-27T02:52:36.05768Z";
Мой код не изменился не работает
Код: Выделить всё
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try{
date = dateFormat.parse(time);
} catch (ParseException e) {
e.printStackTrace();
Logi(TAG, e.getMessage());
}
Код: Выделить всё
error: Unparseable date: "2017-07-27T02:52:36.05768Z" (at offset 10)
[Решено] Неправильный формат строки даты. Строка должна соответствовать шаблону даты
Подробнее здесь: https://stackoverflow.com/questions/453 ... difference
Мобильная версия