date-fns
Functions for formatting, parsing, and manipulating JavaScript dates.
What it does
Functions for formatting, parsing, and manipulating JavaScript dates.
When it fits
Picking individual functions for the date operations you need.
What you build
Call the date functions from your application code. Choose formatting patterns and locale behavior explicitly; build or add a separate calendar UI when users need to select a date.
Keep in mind
Date calculations and formatting, rather than a date picker UI.
Other options in this category
- @internationalized/date — Building date controls that need explicit calendar and timezone behavior.
- Chrono — Turning phrases such as next Friday into structured date information.
- Day.js — Working with dates through a familiar, chainable API.
- pretty-ms — Showing elapsed time and task durations in interfaces or logs.
- Spacetime — Working with dates across timezones using a chainable interface.
Source
Editorial overview reviewed on October 24, 2026. Follow the source for current setup, compatibility, and licensing.