Get the next date with prisma
guys i want to get next
courseDate
from today and only that one. how can i do that using this query? π6 Replies
Probably makes sense to add that to your query, right? Something like this:
ok. any particular reason to use
.toUTCString()
?That was just assuming you stored your dates in UTC in the db
i do, but isnt
new Date()
enough?
under the hood its just a timestamp since epochThen youβre probably good. I was just trying to convey it should be UTC time (or the same timezone as your db)
My suggestion was high level, not exact code for your solution
alright:)
thanks!