J
Jeff Bender
I want to show an error if a user enters a date with less than 4
digits.
I have this:
DateFormat format = new SimpleDateFormat("yyyy-MM-dd");
but format.parse("123-10-12") doesn't throw a parse exception. How do
I make a SDF that will throw an exception in that case?
digits.
I have this:
DateFormat format = new SimpleDateFormat("yyyy-MM-dd");
but format.parse("123-10-12") doesn't throw a parse exception. How do
I make a SDF that will throw an exception in that case?