Migrating from Moment.js to Luxon
2 min readJun 30, 2022
In this article, I will mention some of the most commonly used features of moment.js and provide the luxon alternative of those features along with documentation links.
I must confess, I initially thought dayjs to be a better alternate to moment.js as the syntaxes are identical but after implementing it first hand, I personally found dayjs to be finicky and inconsistent. Some of the reasons being: