Obtenha os dados no filtro de data sequelizar

  let endDate = "2022-05-06";
  let startDate = "2022-05-06";
  const list = await Model.findAll({
            where: {
                createdAt: {
                    [Op.lt]: new Date(new Date(endDate).getTime() + 60 * 60 * 24 * 1000 - 1),
                    [Op.gt]: new Date(startDate)
                }
            },
        })
        
       
CodePadding