Open isotopeee opened 5 years ago
https://stackoverflow.com/questions/9584719/date-vs-new-date-in-javascript
What is the benefit of this? Enlighten me!
I think new Date()
returns a mutable date object and Date()
return a String representing the current time in UTC (same as Date.toString()
). I think we should be okay with new Date()
form and utilize date-fns
when we have time.
References: