DEV Community

Discussion on: Oh Javascript... 🙄

Collapse
 
squgeim profile image
Shreya Dahal

That is true. This was a major issue for us in the backend, because even if we stored a date value in the database as just date, it would come to javascript as a date object, and go to the frontend as ISO 8601 string.

We had to configure the postgres driver for node to not automatically parse dates and make sure we only initialize dates in the frontend with number arguments.