Copyright (c) SEMM NL All rights reserved.
Author : Paul Hamaker. Part of JavaLessons.com
To check if an entered date is valid, a java.text.SimpleDateFormat is used with Dutch settings :
Capital 'M' means month. Don't use 'm' for a date, because that signifies minutes.
The number of symbols determine the effect : Four 'y' 's means : the year in full.
29-2-1960 is acceptable, for instance.
We don't want it to go easy on us .
The actual checking is performed ....
, and an exception is thrown by parse if it doesn't agree.
SOME OLDER IMPLEMENTATIONS ( MS 1.1, Sun 1.2 fe ) ARE NOT RELIABLE !