Error in DB update because of Date

For some reason drizzle is complaining that the property birthDate is not a Date because it cannot run the .toISOString() method on it. But I'm sure this is not the case.... I really don't know what is going on.

birthDate: timestamp("birth_date", { mode: "date" }),
Screenshot_2024-06-13_at_12.08.40_PM.png
Screenshot_2024-06-13_at_12.08.16_PM.png
Was this page helpful?