I’m trying to retrieve a record with a date of 08/01/2022, but the query always returns the first entry. Below is my revised code sample:
const target = new Date('08/01/2022').toISOString().substring(0, 10);
const client = new AirtClient({ secret: mySecret }, myBaseId);
client('dataEntries')
.query({
filter: "FORMATDATE({DateEntry})='" + target + "'",
view: 'MainView'
})
.forEach(item => {
const info = {
entryDate: item.get('DateEntry'),
category: item.get('Category')
};
processInfo(info);
});