I am getting this json data in the form of a date in unix timestamp , and i want to show it as only day names in listview , is it possible to achieve it ?
list: [
{
dt: 1432191600,
temp: {
day: 33.53,
min: 25.92,
}
}
]
and i have converted it to like 21-05-2015 , but i want to just show the day names for the whole week.
String date = c.getString(TAG_DATE);
long dt = Long.parseLong(date);
Date date = new Date(dt * 1000L);
SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy");
sdf.setTimeZone(TimeZone.getTimeZone("GMT-4"));
String formattedDate = sdf.format(date);
Can anybody give any suggestion ? Thank You