Facebook の友達の誕生日を次のように取得する方法:現在の日付などを使用して、次に来る誕生日をリストの一番上に表示します。
それでも、私は1月から12月の形で誕生日を迎えています。1月の誕生日を一番上に、12月の誕生日を一番下に友達を獲得しています。
そして、私はまた、誕生日が1月2日または1月28日であったように、それらの誕生日が1月になくなった上に友達を獲得しています。
今、私は次の誕生日のリストを見たいだけです.リストの一番下に亡くなった人たち...
ここみたいに:
https://itunes.apple.com/in/app/birthday-sweet-birthday-calendar/id367346406?mt=8
https://play.google.com/store/apps/details?id=com.scoompa.birthdayreminder&hl=ja
彼らはリストの一番上に最近のものを表示し、後で一番下に表示しました...
それでも私はこのクエリを使用しています:
String query = "select name, birthday, uid, pic_square from user where uid in (select uid2 from friend where uid1=me()) order by birthday_date";
このコードでも試してみました:
Calendar c = Calendar.getInstance();
int month = c.get(Calendar.MONTH)+1;
String query = "select name, birthday, uid, pic_square from user where uid in " +
"(select uid2 from friend where uid1=me())AND birthday_date >= '" + month + "/01' AND birthday_date <= '" + month + "/31' ORDER BY birthday_date ASC";