Skip to content

Conversation

flaviendelangle
Copy link

@flaviendelangle flaviendelangle commented Mar 21, 2025

I noticed this issue while working on https://github.com/mui/mui-x:

console.log(dayjs().set('year', 2009).format('YY')); // 09
console.log(dayjs().set('year', 9).format('YY')); // 9

If padStart is not widely supported enough I can of course implement the same logic manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant