dayjs icon indicating copy to clipboard operation
dayjs copied to clipboard

Invalid Date

Open imdanielaalves opened this issue 3 years ago • 1 comments

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

image

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

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

imdanielaalves avatar Jul 28 '22 08:07 imdanielaalves

Hi, you can use strict validation to validate the date. Here is a demo

Upd: I see you've created an issue in angular-datetime-picker repo. It seems to be not supported by this library.

Bykiev avatar Jul 28 '22 12:07 Bykiev