date-fns is a modern JavaScript date utility library that offers the most comprehensive toolset for manipulating JavaScript dates in a browser and Node.js. It’s complete and yet simple, because the API is unambiguous, with just one approach to a problem. It’s highly reliable and consistent, always respecting timezones and DST. And it’s also modular, so you don’t have to bloat your project with unnecessary functionality.
date-fns supports TypeScript and Flow, and is supported by an amazing community with dozens of locales.
Features
- Modular
- Native date - uses the existing native type
- Immutable and pure - built with pure functions
- Supports TypeScript and Flow
- Functional programming submodule
- I18n
- Consistent and reliable - respects timezones and DST, and follows semantic versioning
- Simple API
- Small and fast
Categories
LibrariesLicense
MIT LicenseOther Useful Business Software
$300 Free Credits to Build on Google Cloud
Start your next project with $300 in free Google Cloud credit. Spin up VMs, run containers, query petabytes in BigQuery, or build agents with Gemini Enterprise Agent Platform. Once your credits are used, keep building with 20+ always-free tier products including Compute Engine, Cloud Storage, GKE, and Cloud Run functions. No commitment required—just sign up and start building.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of date-fns!