arqex / arqex/react-datetime

Issue while selecting previous month date from FEBRUARY.

Open
#852 14 comments 5 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2k
Forks
858
PR merge metrics
No merged PRs in 30d

Description

### I'm Submitting a ...

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

### Steps to Reproduce
Selecting previous month dates from **February** is giving wrong date.
1. Go to Feb of any year.
2. Select 29,30,31 or available dates of january.
3. selecting 31 january will give 3 jaunary.

image

### Expected Results

On clicking on 31 jaunary from February month should give 31 January as date.

### Actual Results

On clicking on 31 jaunary from February month it is giving 3 January as date.

### Minimal Reproduction of the Problem

can check here - https://codesandbox.io/s/boring-dew-uzln3

1. Go to Feb of any year.
2. Select 29,30,31 (previous month dates) or available dates of january.
3. selecting 31 january will give 3 jaunary.
4. selecting 30 january will give 2 january.

### Other Information (e.g. stacktraces, related issues, suggestions how to fix)

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.