I was reading the MDN Date
constructor documentation today and noticed that MDN itself doesn't recommend you use the Date
constructor or the Date.parse()
method to parse from date-strings.
date-fns itself requires the date-string to be a Date
.
moment.js can do it, but I read several articles recommending not to use it.
So the question is, is there an alternative to the Date
constructor?