How to get the last 180 day worth of data

How to get the last 180 day worth of data

Hi,

I'm trying to get the last 180 days worth of data with .getData() but for some reason it only gets to the 21s of Jun. 
  1. var datum = '2023-01-01'
  2. var today = new Date();
  3.   var manual= Date.parse(datum);
      var yesterday = new Date(manual);
      const keresett_datum = {
        variable: "pressure1",
        start_date: [yesterday],
        end_date: [today],
        qty: "100000000",
      };
      const device_token = await Utils.getTokenByName(account, device.id);
      const device_now = new Device({ token: device_token });
      const keresett_adat = await device_now.getData(keresett_datum).catch(() => null);
My question is what am I doing wrong? I thought maybe it was the 15 default quantity, so i gave it a big quantity number but it didn't fix it. I tried to write the start and end dates multiple ways and that didn't fix it either.