Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui not having consistent behavious for invalid dates #2709

Open
sant527 opened this issue Sep 17, 2024 · 0 comments
Open

ui not having consistent behavious for invalid dates #2709

sant527 opened this issue Sep 17, 2024 · 0 comments

Comments

@sant527
Copy link

sant527 commented Sep 17, 2024

Expected behaviour

keeping the UI consistent with invalid dates

Actual behaviour

If i enter a date 01/01/1965 the ui will show the currentday screen only because its less than startDate
also 10/1/10000 the ui willshow currentday screen only because greater than endDate

but if i enter a date like 99/99/2000 in the ui it picks 06/07/2000 the input does not change remains as 99/99/2000 because of forceParse = False. i dont want ui to show some approximate date for invalid dates. I want it to be consistent the same way if the date is not in the range of startdate and enddate

Datepicker version used

1.10.0

Example code

    $('.dt_picker').datepicker({
        autoclose: true,
        orientation: "auto",
        forceParse: false,
        format: 'mm/dd/yyyy',
        startDate: '01/01/1970',
        endDate: '12/31/9999',
        todayHighlight: true,
        weekStart: 1,
        clearBtn: true,
        validateOnBlur: true
    })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant