Return whether input matches regex of date which pattern is 'yyyy-MM-dd'.
static bool isDate(String input) { return matches(regexDate, input); }