All Projects → date-fns → Date Fns

date-fns / Date Fns

Licence: other
⏳ Modern JavaScript date utility library ⌛️

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
shell
77523 projects

Projects that are alternatives of or similar to Date Fns

Date Fns Tz
Complementary library for date-fns v2 adding IANA time zone support
Stars: ✭ 385 (-98.61%)
Mutual labels:  time, date, utilities
timelite
String date and time utilities 🕙
Stars: ✭ 17 (-99.94%)
Mutual labels:  time, utilities, date
Date Io
Abstraction over common javascript date management libraries
Stars: ✭ 382 (-98.62%)
Mutual labels:  hacktoberfest, date
Knptimebundle
Provides helpers for time manipulation
Stars: ✭ 459 (-98.34%)
Mutual labels:  time, date
Pendulum
Python datetimes made easy
Stars: ✭ 4,639 (-83.22%)
Mutual labels:  time, date
Time
Simple time handling in Rust
Stars: ✭ 334 (-98.79%)
Mutual labels:  time, date
Human Interval
Human readable time distances for javascript
Stars: ✭ 360 (-98.7%)
Mutual labels:  time, date
Dynamic Dark Mode
The smart, automatic Dark Mode toggle for macOS Mojave+
Stars: ✭ 397 (-98.56%)
Mutual labels:  hacktoberfest, utilities
Angular Moment Picker
Angular Moment Picker is an AngularJS directive for date and time picker using Moment.js.
Stars: ✭ 536 (-98.06%)
Mutual labels:  time, date
Ramda Adjunct
Ramda Adjunct is the most popular and most comprehensive set of functional utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.
Stars: ✭ 550 (-98.01%)
Mutual labels:  hacktoberfest, utilities
Carbon
A simple, semantic and developer-friendly golang package for datetime
Stars: ✭ 565 (-97.96%)
Mutual labels:  time, date
Tqdm
A Fast, Extensible Progress Bar for Python and CLI
Stars: ✭ 20,632 (-25.38%)
Mutual labels:  time, utilities
Maya
Datetimes for Humans™
Stars: ✭ 3,298 (-88.07%)
Mutual labels:  time, date
Pext
Python-based extendable tool
Stars: ✭ 380 (-98.63%)
Mutual labels:  hacktoberfest, modules
Wipe Modules
🗑️ Easily remove the node_modules folder of non-active projects
Stars: ✭ 304 (-98.9%)
Mutual labels:  hacktoberfest, utilities
Timestamp
⏰ A better macOS menu bar clock.
Stars: ✭ 296 (-98.93%)
Mutual labels:  time, date
Linear Time Picker
Gorgeous Android Time and Date picker library inspired by the Timely app
Stars: ✭ 613 (-97.78%)
Mutual labels:  time, date
Timeago.dart
A library useful for creating fuzzy timestamps. (e.g. "5 minutes ago")
Stars: ✭ 293 (-98.94%)
Mutual labels:  hacktoberfest, date
React Datetime Picker
A datetime picker for your React app.
Stars: ✭ 294 (-98.94%)
Mutual labels:  time, date
Datepickerdialog Ios Swift
Date picker dialog for iOS
Stars: ✭ 482 (-98.26%)
Mutual labels:  hacktoberfest, date

date-fns

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


It's like Lodash for dates

  • It has 200+ functions for all occasions.
  • Modular: Pick what you need. Works with webpack, Browserify, or Rollup and also supports tree-shaking.
  • Native dates: Uses existing native type. It doesn't extend core objects for safety's sake.
  • Immutable & Pure: Built using pure functions and always returns a new date instance.
  • TypeScript & Flow: Supports both Flow and TypeScript
  • I18n: Dozens of locales. Include only what you need.
  • and many more benefits
import { compareAsc, format } from 'date-fns'

format(new Date(2014, 1, 11), 'yyyy-MM-dd')
//=> '2014-02-11'

const dates = [
  new Date(1995, 6, 2),
  new Date(1987, 1, 11),
  new Date(1989, 6, 10),
]
dates.sort(compareAsc)
//=> [
//   Wed Feb 11 1987 00:00:00,
//   Mon Jul 10 1989 00:00:00,
//   Sun Jul 02 1995 00:00:00
// ]

The library is available as an npm package. To install the package run:

npm install date-fns --save
# or with yarn
yarn add date-fns

Docs

See date-fns.org for more details, API, and other docs.


License

MIT © Sasha Koss

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].