isDate static method

bool isDate(
  1. String input
)

Return whether input matches regex of date which pattern is 'yyyy-MM-dd'. 返回输入是否匹配样式为'yyyy-MM-dd'的日期的正则表达式。

Implementation

static bool isDate(String input) {
  return matches(RegexConstants.REGEX_DATE, input);
}