Validation whether a string can be parsed to a valid date according to a supplied formatting string (which should conform to the formatting rules as supplied in DateFormat).
This version can also flag dates in the past as error (we need that because many of our applications should accept only dates in the future, for example delivery dates).
To be nice it also checks for illegal input that would parse into a valid (but possibly unintended) date value, for example 35-24-2004 is not accepted even if DateFormat.parse() allows it (simply rolling forward to the next real date).
Tested using J2SDK 1.4.2 and 1.5.0