Software Alternatives & Reviews

Moment.js VS Day.js

Compare Moment.js VS Day.js and see what are their differences

Moment.js logo Moment.js

Parse, validate, manipulate, and display dates in JavaScript

Day.js logo Day.js

2kB JavaScript date utility library
  • Moment.js Landing page
    Landing page //
    2021-07-30
  • Day.js Landing page
    Landing page //
    2022-06-11

Category Popularity

0-100% (relative to Moment.js and Day.js)
Javascript UI Libraries
59 59%
41% 41
JS Library
57 57%
43% 43
JavaScript Framework
100 100%
0% 0
Web Frameworks
44 44%
56% 56

User comments

Share your experience with using Moment.js and Day.js. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, Moment.js should be more popular than Day.js. It has been mentiond 61 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Moment.js mentions (61)

  • How to Convert String to Date in JavaScript
    To learn more about Moment.js, please visit their official website. - Source: dev.to / 22 days ago
  • 8 NPM Packages for JavaScript Beginners [2024][+tutorials]
    Ah, Moment.js, the guardian angel of date and time manipulation. Ever needed to format a date, calculate durations, or display something like "2 days ago"? Moment.js has got your back. It's a lifesaver for anything date and time-related, making it a must-have in your project, especially if you're into making your users feel like you really get them. - Source: dev.to / 25 days ago
  • Adding "Created At" and "Last Updated" Dates to Jekyll
    After hours of trying to figure out why Jekyll was still showing "Today" for a post I modified last week, I remembered that I am using the timeago filter from jekyll-timeago plugin. I was rendering the dates using {{ doc.last_modified_at | timeago }}. As you know, Jekyll is a static site generator, and it renders this as HTML at the time of build, and only then. This means any date rendered with timeago is... - Source: dev.to / 4 months ago
  • The 20 most used React libraries
    Moment: Handles date and time manipulations with ease. Learn more. - Source: dev.to / 4 months ago
  • 👨‍🚀 Traversing Time with Intl.RelativeTimeFormat()
    For the longest time working with dates in JavaScript was a huge pain. That’s why libraries such as moment.js or date-fns are so popular. A lot of times I’d reach for these libraries when working with relative time formatting, but since late last year we’ve had pretty great browser support for the RelativeTimeFormat() method. In my mind, relative dates are just more visually appealing, especially for working with... - Source: dev.to / 4 months ago
View more

Day.js mentions (32)

  • Complete Tutorial: React Admin Panel with refine and daisyUI
    We have to install refine's support packages for React Table and React Hook Form. We are using Tailwind Heroicons for our icons, the Day.js library for time calculations and Recharts library to plot our charts for KPI data. So, run the following and we are good to go:. - Source: dev.to / 6 months ago
  • Managify: Manage Your Teams Easily
    DayJS is a lightweight and fast JavaScript library for manipulating dates and times. It offers a moment.js-like API but with a much smaller footprint. - Source: dev.to / 9 months ago
  • Flash News App React Native (Expo^)
    Well, I haven't reviewed the code, I just checked package.json and I'll suggest you to ditch moment.js Even the creator recommends ditching it. Dayjs is a fantastic alternative. Source: 11 months ago
  • You don't need zero JS website for a perfect Lighthouse score
    This may sound a bit general but we can't forget about well-tought code. If we are using a lot of external dependencies, we can check if there aren't many lighter alternatives. Example? Some people are still using moment.js for date formatting. Why not use a lightweight 2kb alternative instead? Writing clean, organized and maintainable code won't give us a huge score boost but we are trying to save every byte of... - Source: dev.to / 12 months ago
  • Reactivity and timeouts
    I think Date.now() creates a string that is the number of milliseconds since 1 January 1970 UTC, and since it is UTC you can account for the timezone automatically however you format it for the user. For example, dayjs. Source: about 1 year ago
View more

What are some alternatives?

When comparing Moment.js and Day.js, you can also consider the following products

date-fns - date-fns provides the most comprehensive yet simple and consistent toolset for manipulating JavaScript dates in a browser & Node.js.

AngularJS - AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop.

Luxon - Application and Data, Libraries, and Javascript Utilities & Libraries

js-Joda - Immutable date and time library for JavaScript

Backbone.js - Give your JS App some Backbone with Models, Views, Collections, and Events

Nuxt.js - Nuxt.js presets all the configuration needed to make your development of a Vue.js application enjoyable. It's a perfect static site generator.