danecando
DTDrizzle Team
•Created by danecando on 10/31/2023 in #help
Issue filtering by date equality
I'm running into an issue where I don't get any results for a value with matches in the db.
Example query using date string directly from db gives me two results:
If I send this value through new Date('xxx').toISOString() I get back:
2023-11-02T03:00:40.145Z
Same query with this value returns 0 results
I'm seeing the same behavior when trying to equality filter this value using drizzle IE:
where: eq(meetingEvents.startingAt, decodedCursor ? new Date(decodedCursor.startingAt) : afterDate),
Not sure if this is a known issue people have run into or if I'm just doing something wrong. Like maybe I need to use dates in string mode?13 replies