Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

Make DateParser more tolerant #2509

@cdietze

Description

@cdietze

This is a feature request to make the date parser more tolerant.

If a user enters a date by hand it would be nice to be more tolerant. E.g. I set the dateFormat to dd.MM.yyyy it would be nice for all of these to be accepted as Feb, 1st 2014:
a) 01.02.2014
b) 1.2.2014
c) 1.2.14
d) 1.2.

Currently only a is parsed correctly. I would say b is really useful and c and d are nice-to-have.
I understand that the tolerant parsing is only possible when a separator is available. Parsing yyyyMMdd in this way does not seem useful.
(A related bug is #2508: Chrome would parse b,c and d as Jan, 2nd).

Can be reproduced using the demo datepicker

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions