42BV / CSVeed

Light-weight, easy-to-use Java-based CSV utility
Apache License 2.0
100 stars 22 forks source link

Date conversion could be made more strict #28

Closed robert-bor closed 11 years ago

robert-bor commented 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.