Software Alternatives, Accelerators & Startups
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

Videos

We don't have any videos for date-fns yet.

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.
  • Date Formatting: Carbon, date-fns, and Vanilla JS
    Working with dates and times is an essential part of web development. Whether you're building a blog, an e-commerce site, or a personal project, handling and formatting dates correctly can greatly enhance user experience. In this blog, we'll explore date formatting using three different methods: Carbon (PHP), date-fns (JavaScript), and Vanilla JS Date. We'll provide examples for each to help you understand how to... - Source: dev.to / about 1 month ago
  • Publish pure ESM npm package written in TypeScript to JSR
    I'm developing vremel, an utility library for Temporal API (similar to date-fns for Date). It's a pure ESM package1 and written in TypeScript. - Source: dev.to / about 2 months ago
  • How to parse and format a date in JavaScript
    Date-fns (33.3k ⭐) — A library that offers great documentation, functional architecture, and utilities that handle almost any task you can think of. It has a modular design that allows you to import only the functions you need. - Source: dev.to / about 2 months ago
  • Handling dates in JavaScript with Tempo
    Date-fns is a JavaScript date-handling library written in TypeScript. It was first released in 2014. date-fns works in both the browser and Node.js. It also supports working with TypeScript and Flow (the JavaScript typechecker). date-fns is very popular, with 33.4K stars on GitHub and 20.5M npm weekly downloads, at the time of writing. - Source: dev.to / about 2 months ago
  • JavaScript Compare Dates: From Chaos to Clarity
    Date-fns is a modern and modular library that lets you do amazing things with dates and times. You can parse, sort dates, and format them in any way you want. You can also use plugins to add more features, like natural language comparisons, relative time, or custom formats. - Source: dev.to / about 2 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 / 6 months ago
  • What big media wants us to think.
    I've used this before and I like it more. Source: about 1 year 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 / over 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 / over 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

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.