I am trying to show the list of data based on the selected date, there is a list contain dates inside the child,how can i put the query of the selected date and compare it with the list of dates.
Query query = FirebaseDatabase.getInstance()
.getReference()
.child("PlanOfDoctor").orderByValue().equalTo(s.toString());
FirebaseRecyclerOptions<Plan> options =
new FirebaseRecyclerOptions.Builder<Plan>()
.setQuery(query, new SnapshotParser<Plan>() {
@NonNull
@Override
public Plan parseSnapshot(@NonNull DataSnapshot snapshot) {
return new Plan(snapshot.child("name").getValue().toString(),
snapshot.child("hospital").getValue().toString(),
snapshot.child("location").getValue().toString());
}
}).build();