DateTime? formatOne(String date) { try { return format1.parse(date); } on FormatException catch (_) { return null; } }