Hi,
Has anyone been able to enforce that the year is 4 digits instead of two for
the DateTextField? Right now, if my format is MM/dd/yyyy the DateTextField
is still allowing two digit fields to be submitted.
final String dateFormat = "MM/dd/yyyy";
PatternDateConverter pdc = new PatternDateConverter( dateFormat, false );
add(DateTextField.withConverter("obligationDate", pdc));
I looked at the JODA javadoc for DateTimeFormat that PatternDateConverter is
using but didn't see anything that would help (I saw ISODateTimeFormat that
came close but it doesn't allow you to pass in the format).
This seems like a reasonably straight forward problem so what am I missing?
Thanks!
Aye