time=c.optString("time");
Log.d("time", time);
tm = Timestamp.valueOf(time);//converting timestamp to day of week
Log.v("day", String.valueOf(tm.getDay()));
This returns me the day codes..ie 1-Monday to 7-Sunday..
伙计我从php SQL服务器获取数据和时间戳。我想将该时间戳转换为weekdaay name..like(Monday ...)..并相应地将数据设置为7天的名称header..how我这样做...我的可扩展列表将包含7个标题..一周7天...