Am 23.02.16 um 16:26 schrieb Mark van Limburg:
According to the earlier pasted Class file, where would you paste the
SimpleDataFormat code?
You have this 2 lines in your code
feeds.add(pagefeed.getJSONObject(l).getString("created_time"));
feeds.add(pagefeed.getJSONObject(l).getString("message"));
changed it to something like this:
SimpleDateFormat formatIn = new SimpleDateFormat("dd-MM-yyyy",
Locale.ENGLISH);
SimpleDateFormat formatOut = new SimpleDateFormat("yyyy-MM-dd",
Locale.ENGLISH);
String created_time =
pagefeed.getJSONObject(l).getString("created_time");
Date date = formatIn.parse(created_time);
feeds.add(formatOut.format(date));
feeds.add(pagefeed.getJSONObject(l).getString("message"));
--
You received this message because you are subscribed to the Google Groups "Android
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/56CC96D8.7040107%40the4thfloor.eu.
For more options, visit https://groups.google.com/d/optout.