iamkun / iamkun/dayjs

not add zero when format YYYY if year less than 1000 > d.format('YYYY-MM-DD') = 1-01-01

Open
#2,407 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
not add zero when format YYYY if year less than 1000 > d.format('YYYY-MM-DD') = 1-01-01

**Expected behavior**
d.format('YYYY-MM-DD') = 0001-01-01

**Information**
- Day.js Version : 1.11.6
- OS: MacOs 13.4
- Browser : chrome 114.0.5735.198

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.