-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Change regex for dateparser format 'd' and 'M' to allow for leading zeros and fix regex for 'M' format #3008
Comments
This is true I had the same issue. @dkuerner please make a pull request with your commit so that the someone from the team can review/merge. (hope sometime soon 👍 ) |
We are not interested in supporting this at this point in time - the dateparser currently aims to support the behavior found in Angular's dateFilter. |
Are you serious. Filters are meant primarily for presenting data not user input. Try putting a date picker on an input type text and explain to the user why is 1/2/2015 is not a valid date. IMHO this is a bug |
Nothing is stopping you from overwriting the That type of attitude though is unwarranted and unprofessional. |
My sincere apologies for my outburst. |
You'll be happy to know @cleftheris that I figured out a good implementation for this feature, and it will make it shortly to |
@wesleycho thanks much appreciated. Although currently I have overridden the cheers |
Allow leading zeros for day and month for format d and M
Use case:
Format d.M.y should allow for entering dates like 02.05.12 and like 2.5.12
This format is very common.
In addition, the regex for 'M' is incorrect. The order of the alternation should be changed.
The text was updated successfully, but these errors were encountered: