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() {
 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("_")
 Toast.makeText(MainActivity.this, selectedDate, Toast.LENGTH_SHORT).show();
 reference = database.getReference(selectedDate);

 } catch (NullPointerException e) {

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

Find more questions by tags Mobile developmentAndroidFirebase