我仍然按升序获得 1 月至 12 月形式的Facebook 好友列表,请参见下图:
但现在我想以即将到来的生日的形式显示 Facebook 好友列表,例如:
最近在顶部
我正在使用以下查询来获取好友列表:
Log.d(LOG_TAG, "requestFriends(" + ")");
Date date = new Date();
String current_date = null;
SimpleDateFormat dateFormatter = new SimpleDateFormat("MM-dd-yyyy");
current_date = dateFormatter.format(date);
System.out.println("Current Date is:- " + current_date);
String query = "select name, birthday, uid, pic_square from user where uid in (select uid2 from friend where uid1=me()) and birthday_date>= "
+ current_date + " order by birthday_date";
请告诉我应该使用什么查询来获取即将到来的 B'days 形式的列表