noob saibotN
Convex Community2y ago
2 replies
noob saibot

Uncaught Error: `new Date()` with non-number arguments is not supported

I'm saving date as
iso string (with timezone info)
in my table. Then in a function, I would like to use this date in my business logic code. When I try to create a new date from the saved value with
new Date(table.some_date)
, I'm getting above error. Does that mean that in
convex
, dates should alway be saved in db as
number
? This is not what I seemed to understand from the docs
Was this page helpful?