How to update a Firebase list?

Good day to all. Need help. Want changing the date that would have changed the list (of customers from Firebase), using method put the date at the moment, everything works, but when you press on another day the list is not updated. Please tell me how to update the list?
Calendar c = Calendar.getInstance();
 SimpleDateFormat sdf = new SimpleDateFormat("dd_MM_yyyy");
 Date date = new Date();
 calendarView = (CalendarView) findViewById(R. id.calendarView);
 selectedDate = sdf.format(date);
 try {
 calendarView.setOnDateChangeListener(new CalendarView.OnDateChangeListener() {
@Override
 public void onSelectedDayChange(@NonNull CalendarView calendarView, int year, int month, int dayOfMonth) {
 int mYear = year;
 int mMonth = month;
 int mDay = dayOfMonth;
 selectedDate = new StringBuilder().append(mDay).append("_").append(mMonth + 1).append("_")
.append(mYear).toString();
 Toast.makeText(MainActivity.this, selectedDate, Toast.LENGTH_SHORT).show();
result.clear();
 reference = database.getReference(selectedDate);

}
});
 } catch (NullPointerException e) {
 }

49838c2810944631860ca5e0bbfc270a.jpg
the database is only populated for 2 days. By clicking on the 10 may not display the data from the table
671016617487436b93aa5e60b3d6aed2.jpg
June 26th 19 at 14:09
0 answer

Find more questions by tags Mobile developmentAndroidFirebase