Firebase query by date

firebase

#1

Hi guys, I am trying to implement a search by date query for on Firebase but I have no idea where to begin. Basicaly the database should look like below:

“10-20”{
“option1” : {
“details” : “Bexxy”,
“uses” : “3”,
“price” : 1050,
“id” : “option1” },

   "option2" : {
  "details" : "Bexxy",
  "uses" : "3",
  "price" : 1050,
  "id" : "option2" }
   }

“20-30” : {
“option1” : {
“details” : “Bexxy”,
“uses” : “3”,
“price” : 1050,
“id” : “option1” },

   "option2" : {
  "details" : "Bexxy",
  "uses" : "3",
  "price" : 1050,
  "id" : "option2" }

}

I would like to select my birthday from a date picker on the main page and be shown a master list of items within that age bracket on the next. In the example above 10-20 & 20-30 are the age brackets with the various options 1 & 2. If my age from the age picker in the main page calculates an age of 25, I want the second page to show a list of the options 1 and 2 under 20-30 bracket. Any assistance would be appreciated.