*/
static void assertDateFormatIsValid (String method, String date) {
Matcher matcher = DATE_PATTERN.matcher(date);
if (!matcher.matches())
throw new InvalidDateFormatException (
"The date parameter " + date +" passed to the method " +
method + " is invalid.");
}