I'm trying to filter data with javascript for an object like this,
[{created: 1601820360, magic: -0.1, power: 0.1, createdDat: "2020-10-05"}
{created: 1601820365, magic: -0.8, power: 0.8, createdDat: "2020-10-05"},..]
I want to filter the array by date, and i'm thinking of using the created field to avoid relying on two date fields.
I'm sort of confused about how to do this with UNIX timestamps - do I need to convert the timestamps or can I do this more simply? And how would I filter the data array (a simple for loop?)
Thanks in advance - bit lost on this one