Closed robert-bor closed 11 years ago
The current date formatter (ie, SimpleDateFormat) is too lenient with combinations that should not be allowed.
Ie, with the following format: dd-MM-yyyy.
It should parse (and it does):
27-05-2013
It should not parse (while it does):
05-27-2013
Nor:
2013-05-27
Perhaps replace with another, more strict, implementation of DateFormat.
The current date formatter (ie, SimpleDateFormat) is too lenient with combinations that should not be allowed.
Ie, with the following format: dd-MM-yyyy.
It should parse (and it does):
27-05-2013
It should not parse (while it does):
05-27-2013
Nor:
2013-05-27
Perhaps replace with another, more strict, implementation of DateFormat.