-
### Discussed in https://github.com/date-fns/date-fns/discussions/2582
Originally posted by **Chrisazy** August 9, 2021
Every time I go to search for the API specs of a date-fns function (loo…
-
Case 1:
Broken since #2616
Broken in versions: 2.29.0, 2.29.1, 2.29.2, 2.29.3
Working in versions: 2.28.0
```typescript
const duration = intervalToDuration({
start: new Date(2020, 0, 31),
…
-
Hello. Trying to pass locale, but headerFormat and month names are shown as "Invalid date".
Code:
```
```
How to pass it correctly?
Or may be even change api of locale attribute t…
-
I see that there is a [date-fns/fp](https://github.com/date-fns/date-fns/blob/main/docs/fp.md) submodule and a [date-fns/utc](https://www.npmjs.com/package/@date-fns/utc) package, but is there a way t…
-
I noticed you are using the version "date-fns": "2.0.0-alpha.16", but the latest is 2.0.0-alpha.27. At least a bunch of locales are missing on the older version.
-
-
Hi great library.
Since [moment](https://bundlephobia.com/result?p=moment@2.24.0) is 10 times bigger than [date-fns](https://bundlephobia.com/result?p=date-fns@1.30.1), I was wondering, if it is poss…
-
Now when I need to use locale object for formatRelative translation I do as below
```javascript
import { subDays, formatRelative } from 'date-fns';
import enUs from 'date-fns/locale/en-US'
retur…
-
I'm getting complaints that dependencies are not installed during build:
```
These dependencies were not found:
* date-fns/add_days in ./node_modules/vue-airbnb-style-datepicker/dist/vue-airbnb-s…
-
I recommend using date-fns over moment not only because of the performance improvements but the reduced build sizes.
Here is a shorty article about moment vs date-fns: https://medium.com/@k2u4yt/mo…