Return whether input matches regex of date which pattern is 'yyyy-MM-dd'. 返回输入是否匹配样式为'yyyy-MM-dd'的日期的正则表达式。
static bool isDate(String input) { return matches(RegexConstants.REGEX_DATE, input); }