date-fns
Modern JavaScript date utility library
Last updated 2 months ago by kossnocorp .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install date-fns 
SYNC missed versions from official npm registry.

date-fns

???????????? date-fns v2 is out! ????????????

⭐️ Upgrading from v1 to v2?

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

date-fns is like lodash for dates. It has 180+ functions for all occasions.

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.

JavaScript jobs by date-fns

???? Know someone who's looking for JavaScript devs? Recommend us a job!

✉️ Get jobs worth sharing to your email! Subscribe to the newsletter.

License

MIT © Sasha Koss

Current Tags

  • 2.14.0                                ...           latest (2 months ago)
  • 2.0.0-beta.5                                ...           next (a year ago)

152 Versions

  • 2.14.0                                ...           2 months ago
  • 2.13.0                                ...           2 months ago
  • 2.12.0                                ...           3 months ago
  • 2.11.1                                ...           4 months ago
  • 2.11.0                                ...           4 months ago
  • 2.10.0                                ...           5 months ago
  • 2.9.0                                ...           6 months ago
  • 2.8.1                                ...           8 months ago
  • 2.8.0                                ...           8 months ago
  • 2.7.0                                ...           8 months ago
  • 2.6.0                                ...           9 months ago
  • 2.5.1                                ...           9 months ago
  • 2.5.0                                ...           9 months ago
  • 2.4.1                                ...           10 months ago
  • 2.4.0                                ...           10 months ago
  • 2.3.0                                ...           10 months ago
  • 2.2.1                                ...           10 months ago
  • 2.1.0                                ...           10 months ago
  • 2.0.1                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 2.0.0-beta.5                                ...           a year ago
  • 2.0.0-beta.4                                ...           a year ago
  • 2.0.0-beta.3                                ...           a year ago
  • 2.0.0-beta.2                                ...           a year ago
  • 2.0.0-beta.1                                ...           a year ago
  • 2.0.0-alpha.37                                ...           a year ago
  • 2.0.0-alpha.36                                ...           a year ago
  • 2.0.0-alpha.35                                ...           a year ago
  • 2.0.0-alpha.34                                ...           a year ago
  • 2.0.0-alpha.33                                ...           a year ago
  • 2.0.0-alpha.32                                ...           a year ago
  • 2.0.0-alpha.31                                ...           a year ago
  • 2.0.0-alpha.30                                ...           a year ago
  • 2.0.0-alpha.29                                ...           a year ago
  • 2.0.0-alpha.28                                ...           a year ago
  • 2.0.0-alpha.27                                ...           2 years ago
  • 2.0.0-alpha.26                                ...           2 years ago
  • 1.30.1                                ...           2 years ago
  • 2.0.0-alpha.25                                ...           2 years ago
  • 2.0.0-alpha.24                                ...           2 years ago
  • 2.0.0-alpha.23                                ...           2 years ago
  • 2.0.0-alpha.22                                ...           2 years ago
  • 2.0.0-alpha.21                                ...           2 years ago
  • 2.0.0-alpha.20                                ...           2 years ago
  • 2.0.0-alpha.18                                ...           2 years ago
  • 2.0.0-alpha.16                                ...           2 years ago
  • 2.0.0-alpha.14                                ...           2 years ago
  • 2.0.0-alpha.13                                ...           2 years ago
  • 2.0.0-alpha.11                                ...           2 years ago
  • 2.0.0-alpha.10                                ...           2 years ago
  • 2.0.0-alpha.9                                ...           2 years ago
  • 2.0.0-alpha.8                                ...           2 years ago
  • 1.29.0                                ...           3 years ago
  • 2.0.0-alpha.7                                ...           3 years ago
  • 2.0.0-alpha.6                                ...           3 years ago
  • 2.0.0-alpha.5                                ...           3 years ago
  • 2.0.0-alpha.4                                ...           3 years ago
  • 2.0.0-alpha.3                                ...           3 years ago
  • 2.0.0-alpha.2                                ...           3 years ago
  • 2.0.0-alpha.1                                ...           3 years ago
  • 1.28.5                                ...           3 years ago
  • 1.28.4                                ...           3 years ago
  • 1.28.3                                ...           3 years ago
  • 1.28.2                                ...           3 years ago
  • 1.28.1                                ...           3 years ago
  • 1.28.0                                ...           3 years ago
  • 1.27.2                                ...           3 years ago
  • 1.27.1                                ...           3 years ago
  • 1.27.0                                ...           3 years ago
  • 1.26.0                                ...           3 years ago
  • 1.25.0                                ...           4 years ago
  • 1.24.0                                ...           4 years ago
  • 1.23.0                                ...           4 years ago
  • 1.22.0                                ...           4 years ago
  • 1.21.1                                ...           4 years ago
  • 1.21.0                                ...           4 years ago
  • 1.20.1                                ...           4 years ago
  • 1.20.0                                ...           4 years ago
  • 1.19.0                                ...           4 years ago
  • 1.18.0                                ...           4 years ago
  • 1.17.0                                ...           4 years ago
  • 1.16.0                                ...           4 years ago
  • 1.15.1                                ...           4 years ago
  • 1.15.0                                ...           4 years ago
  • 1.14.1                                ...           4 years ago
  • 1.14.0                                ...           4 years ago
  • 1.13.0                                ...           4 years ago
  • 1.12.1                                ...           4 years ago
  • 1.12.0                                ...           4 years ago
  • 1.11.2                                ...           4 years ago
  • 1.11.1                                ...           4 years ago
  • 1.11.0                                ...           4 years ago
  • 1.10.0                                ...           4 years ago
  • 1.9.0                                ...           4 years ago
  • 1.8.1                                ...           4 years ago
  • 1.8.0                                ...           4 years ago
  • 1.7.0                                ...           4 years ago
  • 1.6.0                                ...           4 years ago
  • 1.5.2                                ...           4 years ago
  • 1.5.1                                ...           4 years ago
  • 1.5.0                                ...           4 years ago
  • 1.4.0                                ...           4 years ago
  • 1.3.0                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 1.0.0-rc22                                ...           4 years ago
  • 1.0.0-rc21                                ...           4 years ago
  • 1.0.0-rc19                                ...           4 years ago
  • 1.0.0-rc18                                ...           5 years ago
  • 1.0.0-rc17                                ...           5 years ago
  • 1.0.0-rc16                                ...           5 years ago
  • 1.0.0-rc15                                ...           5 years ago
  • 1.0.0-rc14                                ...           5 years ago
  • 1.0.0-rc13                                ...           5 years ago
  • 1.0.0-rc12                                ...           5 years ago
  • 1.0.0-rc11                                ...           5 years ago
  • 1.0.0-rc10                                ...           5 years ago
  • 1.0.0-rc9                                ...           5 years ago
  • 1.0.0-rc8                                ...           5 years ago
  • 1.0.0-rc6                                ...           5 years ago
  • 1.0.0-rc5                                ...           5 years ago
  • 1.0.0-rc4                                ...           5 years ago
  • 1.0.0-rc3                                ...           5 years ago
  • 1.0.0-rc2                                ...           5 years ago
  • 1.0.0-rc1                                ...           5 years ago
  • 1.0.0-alpha4                                ...           5 years ago
  • 1.0.0-alpha3                                ...           5 years ago
  • 1.0.0-alpha2                                ...           5 years ago
  • 1.0.0-alpha1                                ...           5 years ago
  • 0.17.0                                ...           5 years ago
  • 0.16.0                                ...           5 years ago
  • 0.15.0                                ...           5 years ago
  • 0.14.11                                ...           5 years ago
  • 0.14.9                                ...           5 years ago
  • 0.14.8                                ...           6 years ago
  • 0.14.5                                ...           6 years ago
  • 0.13.0                                ...           6 years ago
  • 0.12.1                                ...           6 years ago
  • 0.12.0                                ...           6 years ago
  • 0.11.0                                ...           6 years ago
  • 0.10.0                                ...           6 years ago
  • 0.9.0                                ...           6 years ago
  • 0.8.0                                ...           6 years ago
  • 0.7.0                                ...           6 years ago
  • 0.6.0                                ...           6 years ago
  • 0.5.0                                ...           6 years ago
  • 0.4.0                                ...           6 years ago
  • 0.3.0                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Downloads
Today 4,657
This Week 17,823
This Month 141,298
Last Day 13,166
Last Week 74,827
Last Month 329,332
Dependencies (0)
None
Dependents (3894)

Copyright 2014 - 2017 © taobao.org |