Skip to content
Agents tracked: 440 Downloads (7d): 202M down 19.5% GitHub stars: 10.4M Releases (7d): 607 Agent status: all upSince last limit reset: Claude 28d · Codex 0d Updated Oct 21, 2026

date-fns vs Day.js

In 4,818 JavaScript/TypeScript projects set up for AI coding agents, date-fns is a dependency in 647 (13.4%) and Day.js in 91 (1.9%): date-fns is 7.1× as common. Among repos created in the last 90 days that use a utilities tool, date-fns is in 11.7% and Day.js in 3.9%, against 30.9% and 4.2% of older ones. 21 projects list both, often a sign of a migration or of a monorepo with several apps.

Utilities npm Updated Oct 20, 2026

date-fns13.4%
Day.js1.9%

Share of 4,818 JavaScript/TypeScript projects set up for AI coding agents that list each one as a dependency.

Side by side

date-fnsDay.js
Agent projects that use it64791
Rank in utilities#2#12
In new repos with a utilities tool (last 90 days)11.7%3.9%
In older repos with one30.9%4.2%
Downloads, last 7 days56M44.3M
GitHub stars36.6K48.7K
Last push to its repoSep 22, 2026Sep 15, 2026
LicenseMITMIT
FundingYesYes
Projects that list both21

Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from npm.

By coding agent

Projects set up forJavaScript/TypeScript reposdate-fnsDay.js
Claude Code2,58012.5%1.8%
GitHub Copilot2,33911.9%2.4%
Cursor1,98718.3%2.2%
Gemini CLI41610.8%3.4%
OpenAI Codex3999.3%2.8%
OpenCode2957.8%2.7%
OpenClaw2266.6%0%
Devin Desktop22818.0%0%
Kiro12518.4%0%
Roo-Code9018.9%0%

Share of the JavaScript/TypeScript repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.

date-fns

Modern JavaScript date utility library with comprehensive formatting functions.

Most often used with it:

Lucide React82.7% of its projects
clsx81.3% of its projects
Tailwind Merge79.6% of its projects
Class Variance Authority76.2% of its projects
Radix UI70.2% of its projects

npm install date-fns

Day.js

2KB immutable date/time library with modern API as lightweight Moment.js alternative.

Most often used with it:

ESLint81.3% of its projects
Tailwind CSS74.7% of its projects
Vite57.1% of its projects
TypeScript91.2% of its projects
Axios37.4% of its projects

npm install dayjs

More matchups

yaml vs js-yamluuid vs Nanoid (JavaScript)

How we count

Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.

Still not sure? Ask AgentGid which fits your project →