Hacker News new | past | comments | ask | show | jobs | submit login

> Modern alternatives such as Day.js and date-fns may be better but should a library necessary when your app has minimal date-handling requirements?

Yes? Or at least, I don't think this is the, "obvious question that leads to the rest of the article" that the author may have assumed.

As another commenter mentioned, Day.js is 2kb. That's the answer: use Day.js.

But I guess that doesn't get you a blog post you can reference when applying to jobs, so here we are.




From someone who used MomentJS back in the day, Day.js is such a nicer alternative! Moment was like 59k or something!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: