Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Dayjs | 43,225 | 5,371 | 6,309 | 2 days ago | 116 | August 12, 2022 | 737 | mit | JavaScript | |
⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API | ||||||||||
Date Fns | 31,615 | 68,280 | 8,107 | 3 days ago | 179 | September 13, 2022 | 578 | mit | TypeScript | |
⏳ Modern JavaScript date utility library ⌛️ | ||||||||||
Awesome Falsehood | 20,728 | 13 days ago | 1 | cc0-1.0 | ||||||
😱 Falsehoods Programmers Believe in | ||||||||||
Luxon | 13,915 | 1,936 | 1,900 | 13 days ago | 130 | August 29, 2022 | 126 | mit | JavaScript | |
⏱ A library for working with dates and times in JS | ||||||||||
Arrow | 8,302 | 3,711 | 888 | a month ago | 63 | January 27, 2022 | 97 | apache-2.0 | Python | |
🏹 Better dates & times for Python | ||||||||||
Pickadate.js | 7,707 | 3 years ago | 285 | mit | JavaScript | |||||
The mobile-friendly, responsive, and lightweight jQuery date & time input picker. | ||||||||||
Datetools | 7,089 | 663 | 2 years ago | 13 | September 28, 2017 | 118 | mit | Objective-C | ||
Dates and times made easy in iOS | ||||||||||
Pendulum | 5,448 | 540 | 310 | 20 days ago | 52 | July 24, 2020 | 245 | mit | Python | |
Python datetimes made easy | ||||||||||
Joda Time | 4,903 | 31,269 | 5,499 | 14 days ago | 51 | August 25, 2022 | 43 | apache-2.0 | Java | |
Joda-Time is the widely used replacement for the Java date and time classes prior to Java SE 8. | ||||||||||
Maya | 3,362 | 149 | 59 | 8 months ago | 24 | January 06, 2019 | 19 | mit | Python | |
Datetimes for Humans™ |
Warning: the current main
represents v3 pre-release version of the library. See v2
branch.
If you're participating in hacktoberfest, please send your PRs to main
.
date-fns provides the most comprehensive, yet simple and consistent toolset
for manipulating JavaScript dates in a browser & Node.js.
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
See date-fns.org for more details, API, and other docs.