Temporal - A trustworthy alternative for (legacy) moment.js ?
Shameel Uddin
Posted on November 4, 2023
I recently wrote a post about moment.js that it has become legacy and suggested some alternatives like dayjs
, luxon
and date-fns
and found out about Temporal being developed by TC39.
Going down the history line, Date
was actually copied from java.Util.Date
and evolved from there. Date is something which is used in almost any type of project you do and you know well that you have to rely on external libraries if complexities occur in calculation or manipulations of date.
Since moment.js has become legacy, Temporal could be a very well prospect to move forward with. The really cool part is that, it is a global Object that acts as a top-level namespace.
I find it really cool by the top level looks of it. Let me know how you find it =)
Happy coding! 🚀👨💻🌐
Follow me for more such content:
LinkedIn: https://www.linkedin.com/in/shameeluddin/
Github: https://github.com/Shameel123
Posted on November 4, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.