-
Notifications
You must be signed in to change notification settings - Fork 28
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
Bug: set day #52
Comments
@eight04 you saw ? |
I don't understand what the bug is. You like to allow users to select a date which doesn't exist? |
No I want only valid dates. In France we start by the day and we can know if it is invalid date only if we know the month and the year also for the month of February. In the library if the month is not yet entered, it takes the current month, I feel. |
I got it. Here is the plunker:
We can fix it by automatically increasing month when the date is overflowed. However it would be a breaking change when the month is already filled:
If we want to avoid this change, we have to check if the month part is empty to decide how we should handle overflowed date. |
Yes I think is good ! |
You think proposing a fix ? If yes in how long about? thanks @eight04 |
I'm still working on other stuff these days (alright maybe these weeks). There is no easy fix for this issue.
I think I'll be able to finish this before August. Maybe in the next week, I'll start working on this. |
Fixed in v5.1.3 |
If we use this example :
<input type="text" datetime="dd.MM.yyyy" ng-model="myDate" datetime-separator=",.-/">
and if the current month don't have 31 days, it's impossible to set 31 :-)
The text was updated successfully, but these errors were encountered: