Thursday, June 7th, 2007
Java Date Validation is Annoying (Regexes too)
*EDIT* Thanks for the tips in the comments.
Today I had a user complain that they could enter 2 digit years in their app. Hmm I took a look at the code and I didn't see how that was possible. Here was my date validation method, more after the jump.
public static boolean isDate(String str)
{
[...]






