Im a bit stuck trying to get a select of the following:
id(int) balance(int) datetime(timestamp without timezone)
7 153 "2020-08-24 20:15:49"
8 115 "2020-08-24 20:16:13"
9 105 "2020-08-24 20:17:14"
I want to select doing this
let date = moment().format("YYYY-MM-DD")
console.log(date) // 2020-08-24
let selectAddressSnapshotByDate = new PQ({text: "SELECT balance, datetime FROM table where datetime like '$1%' ", values: [date.toString()]})
I basically want to get the values whose datetime starts with the date value of the programm
Right now im receiving the following error:
error: operator does not exist: timestamp without time zone ~~ unknown