compare
date-fns vs spacetime
The same facts for both, read from GitHub every night, and the relation a person reviewed.
| Fact | date-fns | spacetime |
|---|---|---|
| Language | TypeScript | JavaScript |
| Licence | None detected | Other |
| Stars | 37k | 4.1k |
| Latest | v4.4.0 | 7.16.0 |
| Last push | 2026-09-22 | 2026-10-01 |
| Release cadence | about 4 days between releases | about 19 days between releases |
| Active contributors | 2 commit authors on the default branch in the last 90 days | 4 commit authors on the default branch in the last 90 days |
| Flags | No licence detected | none |
How they relate
Both replace Moment.js. Alternatives to Moment.js →
Full replacementdate-fnsPlain functions over native Date, tree-shakable.
Full replacementspacetimeTimezone-aware dates with the timezone data built in, and an immutable API.
date-fns
- v5.0.0-alpha.02026-05-29v5 focuses on reducing the date-fns package size. Compared to v4.3.0, this version reduces the zipped package size from…pre-release
- v4.4.02026-05-29This release revisits the approach to CDN usage and introduces a new package, @date-fns/cdn and deprecates the date-fns…
- v4.3.02026-05-22Kudos to @ImRodry and @puneetdixit200 for their contributions.
- v4.2.12026-05-18Fixed type definitions missing in v4.2.0 due to TypeScript misconfiguration.
- v4.2.02026-05-18This is a minor release in all senses, it only includes documentation updates (first of many) that points to the new Yo…
spacetime
- 7.16.02026-10-01[change] deprecated but exposed .d date now is in UTC - users can do s.toNativeDate()
- 7.15.02026-09-19[fix] - stale dst offsets #470 (thanks Sudarshan!)
- 7.14.02026-09-11[new] - support JavaScript's Date.toString() fmt as input #465
- 7.13.02026-06-23[fix] - typescript config issue
- 7.12.12026-05-27[fix] - regression for today param in object format
date-fns
✓ signed The latest release, v4.4.0, carries a signature GitHub verified.
Loading the security report
spacetime
✓ signed The latest release, 7.16.0, carries a signature GitHub verified.
Loading the security report