Moment.js

Moment.sj is software that parses, validates, manipulates, and displays dates and times in JavaScript.

Languages supported:

9.0/10 (Expert Score) ★★★★★
Product is rated as #19 in category JavaScript Web Frameworks Software
Ease of use
9.1
Support
8.9
Ease of Setup
8.5

Moment.sj is software that parses, validates, manipulates, and displays dates and times in JavaScript.

Moment.js
Moment.js

Show more categories

Customer Reviews

Moment.js Reviews

Ibrahim A.

Advanced user of Moment.js
★★★★★
Convenient JS library for parsing time and date data for Vanilla JS projects

What do you like best?

It's easy to parse time and dates with it. You have to go through a lot of hoops and loops to get vanilla JS dates to work, especially if you want something specific like a conditional time statement where x falls between two dates. I enjoyed how simple the code was to retrieve time data. In my project, I had to use time to retrieve weather predictions from a weather API and to utilize the time in a variable. I used moment.js because I was looking for a library that would handle my time-centric calls in a convenient way. I liked how clear and straightforward the documentation was, and how simple it was to install and configure. It was an excellent experience to have had moment.js in my project.

What do you dislike?

Moment.js is not compatible with the modern web, and the creators of moment do not recommend it to be used in future projects. As mentioned in moment.js docs, they say that

"Another common argument against using Moment in modern applications is its size. Moment doesn't work well with modern "tree shaking" algorithms, so it tends to increase the size of web application bundles. If one needs internationalization or time zone support, Moment can get quite large. Modern web browsers (and Node.js) expose internationalization and time zone support via the Intl object, codified as ECMA-402. Libraries like Luxon (and others) take advantage of this, reducing or removing the need to ship your own data files."

In addition, there are better alternatives to moment.js such as...

JavaScript Internationalization API

luxon

date-fns

day.js

I believe these other alternatives would are more reliable for future projects.

For more information, please https://momentjs.com/docs/

What problems are you solving with the product? What benefits have you realized?

I have solved problems in parsing and using time data in arguments for open source APIs for 3-4 web development projects. The benefits are the ease of usage of moment.js and its power in asynchronous applications. However, as stated by the moment.js docs, it is no longer viable to use moment as modern web applications require speed.

Review source: G2.com

Leave a reply

Your total score

B2B Software Guide