static Date? tryparse(String formattedString) { try { return parse(formattedString); } on FormatException { return null; } }