convertExpiryDate method
Implementation
String convertExpiryDate(String date) {
// Split the string by the '/' character
List<String> parts = date.split('/');
// Extract the month and the last two digits of the year
String month = parts[0];
String year = parts[1].substring(2); // Get the last two digits of the year
// Combine month and the shortened year
return '$month/$year';
}