iamkun / iamkun/dayjs

Passing formats as array while parsing is not working

Open
#1,774 1 comment 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

@iamkun Hi passing formats in array does not seem to work.
![image](https://user-images.githubusercontent.com/72745366/150154963-1bff77b9-aa96-4e57-a7ef-d6deb1cfa6b9.png)
_Note: month and date values_

But passing single format as string is working
![image](https://user-images.githubusercontent.com/72745366/150155300-e8e494e5-deb5-43fb-b3ac-7fae87fa4fc3.png)

Am I missing anything?
https://replit.com/@ArvindhAshok/date-Format

_Originally posted by @ArvindhMangoleap in https://github.com/iamkun/dayjs/issues/902#issuecomment-1016544978_

Contributor guide

Open the contributing guide

Research direction

Reproduce the array-format and single-format cases from the linked Replit example, using the screenshots and note about month and date values as the expected comparison. Then locate the date-parsing entry point and relevant tests; done means array formats parse the reported values consistently with the working string format.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.