iamkun / iamkun/dayjs

Can String + Format still pass when not exact match?

Open
#1,663 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**
As per the Codepen example, like `moment` can `dayjs` still return a date even if only a partial match is found? I understand an array of format options can also be supplied. But am wondering if the specificity required is intentional? Or is it a bug?
https://codepen.io/MichaelHeyDonny/pen/rNzNPRJ

**Expected behavior**
Still return a dayjs object with what can be retrieved.

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.