Date type
To filter by the Date data type, you need to pass a JavaScript Date object in the where
column.
Example
var results = await connection.select({
from: "Orders",
where: {
orderDate: new Date("1996-07-04T00:00:00.000Z")
}
});
console.log(results);
Note: This functionality is specifically designed to work with columns that have a data type of Date
.