question: public static boolean dateIsValid ( String dateString ) { return dateString . matches ( DEFAULT_DATE_REGEX ) ; }
target:  This method checks whether the String inDate is a valid date following the format "yyyy-MM-dd".