DEV Community

Discussion on: Don't Use The Date Object

Collapse
 
alemagio profile image
Alessandro Magionami

Definitely agree on that.
I made something similar in the past. I used the JS Date object as a dependency, wrapped in a service which was the only point able to handle directly the Date object.

Also consider that there are a lot of libraries to handle JS and this approach lets you change to one of those pretty easily if you want to.