I'm currently working on extracting data from my API to plot it in a graph. Specifically, I am interested in obtaining an array that contains only the 'date' values. Here's what I have managed to extract so far:
https://i.sstatic.net/03ZtO.png
This is the code snippet that allowed me to achieve this:
return {
props: {
data: data
}
}
console.log([[props][0]['data']])
My question is, how can I obtain the 336 'date' values and store them in an array format like [20210112, 20210111, 20210110...]? I've searched for documentation but haven't found a solution. Any suggestions would be greatly appreciated.