Olá pessoal alguém ja teve algum problemas desse tipo:
-- Dou um new Date() esse valor armazeno dentro de um atributo Date do meu objeto e salvo um json com esse valor :Tue Oct 01 23:55:18 BRT 2013
Quando vou ler esse valor do json faço da seguinte forma:
String data = jsonOrder.getString("date_send");
Log.e(LOG_TAG, data);
SimpleDateFormat df = new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy", Locale.US);
Date result = df.parse(data);
Porém tenho o erro abaxo:
10-01 23:56:19.059: W/System.err(19697): java.text.ParseException: Unparseable date: "Tue Oct 01 23:55:18 BRT 2013" (at offset 0)
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.






0 comentários:
Postar um comentário