Software Alternatives & Reviews
Table of contents
  1. Social Mentions
  2. Comments

date-fns

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

date-fns Reviews and details

Screenshots and images

  • date-fns Landing page
    Landing page //
    2022-07-30

Badges

Promote date-fns. You can add any of these badges on your website.
SaaSHub badge
Show embed code

Social recommendations and mentions

We have tracked the following product recommendations or mentions on various public social media platforms and blogs. They can help you see what people think about date-fns and what they use it for.
  • 👨‍🚀 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 / 5 months ago
  • What big media wants us to think.
    I've used this before and I like it more. Source: 12 months ago
  • What is your must have npm package on any given project?
    Date-fns and mitt (event emitter) are also frequent helpers, but I'm considering dayjs and nanoevents for these cases. Source: about 1 year ago
  • Everything you need to know about Temporal Date API
    We all know the pain of working with dates in Javascript. It needs to be more explicit, has almost no method, and could not be more clunky. For example, to create the Date January 1, 2023, you have to write a new Date (2023, 0, 1), which can be confusing for beginners, and overall just not that clear. And because of these reasons, the community has made many libraries that attempt to make Date easier to work with... - Source: dev.to / about 1 year ago
  • Building a real-time commenting app with Socket.io and React
    Next we're going to install any additional dependencies we need. In our case, we're just going to need date-fns which is a library that makes it trivial to work with datetimes in JavaScript. - Source: dev.to / about 1 year ago
  • date format
    Either destructure the date object or just use a library like date-fns. Source: over 1 year ago
  • Trying to change class to green from gray if date is present in array.
    I would highly recommend using date-fns that's what I used last time I made a calendar and well any time I handle dates. Source: over 1 year ago
  • RSS Feed with Next.js
    After that we use the feed library to create the feed and To convert our posts into RSS items. First we have to install the library and install date-fns as well. We need date-fns later to simplify working with dates. - Source: dev.to / over 1 year ago
  • Getting started with webpack - Tutorial for absolute beginners
    Currently, we are showing age in the only number of days. For better readability, let's use a function from the date-fns library. To install it, run. - Source: dev.to / over 1 year ago
  • I made a digital clock, everything is working fine but the meridiem isn't changing, can anyone help?
    Moment isn't maintained anymore and the file size is pretty big for what it is (and it can't be optimised much). https://date-fns.org/ covers a lot of what it did, in a more modular way. Source: over 1 year ago
  • Tell HN: Emmet, the HTML editing plugin, gets $100k/yr in donations from casinos
    Https://date-fns.org/ links to these "sponsors" with rel="noopener noreferrer" - how is that even worth anything to them? - Source: Hacker News / over 1 year ago
  • Tell HN: Emmet, the HTML editing plugin, gets $100k/yr in donations from casinos
    This is it...they are just buying backlinks. "Become a bronze sponsor and get your logo marked as Bronze Sponsor on our website that has 100K/month pageviews (https://date-fns.org) with a link...". - Source: Hacker News / over 1 year ago
  • I make calendar software for a living. How're all of your Sundays going?
    I didn't personally work on the time zone code, but I know we're leveraging the JS library date-fns for most of our date logic and RRule for recurrence logic. Source: over 1 year ago
  • Need to calculate time passed between two dates HELP!
    That should work for your basic page while learning, though usually you would be better off using a date library like date-fns or luxon, as those would better handle edge cases with time zones, daylight savings, or leap years. Source: over 1 year ago
  • A Comprehensive Guide to Rails Internationalization
    If you need more precise control over the display of dates and times, I recommend delegating such functionality to JavaScript by adding the date-fns library. Just create a helper and bypass data to this library like we will do with number rendering. - Source: dev.to / over 1 year ago
  • Day.js Fast 2kB alternative to Moment.js with the same modern API
    I prefer date-fns https://date-fns.org It’s functional and tree shakable! I’ll have to check out Day.js next time though. - Source: Hacker News / over 1 year ago
  • Day.js – Fast 2kB alternative to Moment.js with the same modern API
    I personally prefer date-fns, which is even smaller in size, using the native Date and with a FP style. Source: over 1 year ago
  • For the first time, we used Next.js for our dashboard and website and it is working magically 🧙‍♂️
    Heya! We have built it ourselves, one dependency of it is https://date-fns.org, its very good for date calculations. Source: over 1 year ago
  • I need to find the amount of hours/minutes between the "from" and "to" times.
    Luxon is essentially the successor to Moment -- developed by a Moment contributer afaik & is maintained by the Moment org. date-fns has been mentioned, and is very easy to use. There are a load of others as well, though date-fns is the most popular (by quite a long way afaik). Source: over 1 year ago
  • How Stripe designs for dates and times in the API
    Easy to convert to a nice localized format client side using a library like date-fns, or day.js. - Source: dev.to / over 1 year ago
  • Angular crash on iOS devices toLocaleDateString()
    If you are using toLocaleDateString() to compare dates consider using a library that handles this more efficient like date-fns https://date-fns.org/. - Source: dev.to / over 1 year ago

Do you know an article comparing date-fns to other products?
Suggest a link to a post with product alternatives.

Suggest an article

date-fns discussion

Log in or Post with

This is an informative page about date-fns. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.