iamkun / iamkun/dayjs

Invalid Date

Open
#2,006 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

**Describe the bug**
When I use dayjs and I enter an invalid date, according to the documentation, if the range is exceeded, it will bubble up to the months or years, according what I enter.
**Example:** '60.07.2022' -> '29.08.2022'
![image](https://user-images.githubusercontent.com/89107468/181452359-615e1937-a767-438a-b4c0-e802c3c04e25.png)

![image](https://user-images.githubusercontent.com/89107468/181452407-02ea3f7a-344c-451c-9024-1a63cad09b9f.png)

**Expected behavior**
It's possible have a configuration to disabled that and keep what we enter and tell us just is a invalid date?

![image](https://user-images.githubusercontent.com/89107468/181452693-fedf97ee-c891-43b1-8f9d-7b0b8954a574.png)

**Information**
- Day.js Version: 1.11.2
- Angular Version: 12.2.16
- Date Time Picker: @danielmoncada/angular-datetime-picker: 13.1.1
- @danielmoncada/angular-datetime-picker-dayjs-adapter: 1.1.1

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.