title: Firebase Filter by Date
body: <p>My data:</p>
  
  <p><img src="https://i.stack.imgur.com/DGbmX.png" alt="Data"></p>
  
  <p>I am looking for a way to filter the dates using a custom date range.
        I've   seen some examples online where they have queried for date,
        but the timestamp has always been the key which isn't possible in my case.
         I have tried the below code and it didn't work.</p>
  
  <pre><code>  var rootRef1 = firebase.database().ref().child("Users").orderByChild('type')
    .startAt("2019-01-05").endat("2019-01-10");
  
  
      rootRef1.on("child_added",snap =&gt; {
       var name=snap.child("fullname").val();
      var email= snap.child("email").val();
       var address= snap.child("address").val();
       var contact= snap.child("contact").val();
       var status=snap.child("status").val();
       var type=snap.child("type").val();
       var date=snap.child("regdate").val();
       console.log(name);   
     }); 
  </code></pre>
  
  <p>This does not seem to work. Any ideas?</p>