How to get data from Json file when date match

I am trying to develop an app for prayer times. I created a Json file, now I want to get data for specific date.
For example, I need record only for 18-08-2018 from the following Json file. Please help me. Thanks

[[“18-8-2018”,“06:26”,“08:03”,“12:09”,“13:46”,“14:17”,“16:05”,“17:42”]
,[“17-8-2018”,“06:26”,“08:03”,“12:09”,“13:46”,“14:17”,“16:05”,“17:42”]
,[“17-9-2018”,“06:26”,“08:03”,“12:09”,“13:46”,“14:17”,“16:05”,“17:42”]
,[“02-1-2018”,“06:26”,“08:03”,“12:10”,“13:47”,“14:18”,“16:06”,“17:43”]
,[“03-1-2018”,“06:26”,“08:03”,“12:10”,“13:48”,“14:19”,“16:07”,“17:44”]
,[“04-1-2018”,“06:26”,“08:03”,“12:10”,“13:49”,“14:20”,“16:09”,“17:46”]]

The format you describe is really hard to use. Much better would be something like:

{
  "2018-08-18": ["06:26", "08:03", "12:09", "13:46", "14:17", "16:05", "17:42"],
  "2018-08-17": ["06:27", "08:04", "12:08", "13:48", "14:18", "16:06", "17:43"]
}

Then, assuming you have wantedDate as a Date object (or ISO8601 string), your task becomes trivial:

let times = prayerTimesByDate[format(wantedDate, "YYYY-MM-DD")];

…using format from date-fns.

Thanks, I will try this.