arqex / arqex/react-datetime

Feature Request: Multiple date formats

Open
#495 6 comments 1 reaction 0 assignees View on GitHub
feature request
Dominant language
JavaScript
Stars
2k
Forks
858
PR merge metrics
No merged PRs in 30d

Description

### I'm Submitting a ...

```
[ ] Bug report
[X] Feature request
[ ] Support request
```

Since it is possible in moment.js multiple date formats to use for parsing, it would be very nice if react-datetime also had this feature. At the moment, if an array of date formats is set to dateFormat property, then the react-datetime component crashes.

Contributor guide

Open the contributing guide

Research direction

Inspect the react-datetime component's dateFormat handling and its Moment.js parsing behavior. Reproduce the crash with an array of formats, then review the existing component behavior for a single format. Done means array-valued dateFormat inputs are accepted without crashing while existing single-format behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.