convertToMonthString method

String convertToMonthString()

Implementation

String convertToMonthString() {
  if (this == 01) {
    return 'JAN';
  } else if (this == 02) {
    return 'FEB';
  } else if (this == 03) {
    return 'MAR';
  } else if (this == 04) {
    return 'APR';
  } else if (this == 05) {
    return 'MAY';
  } else if (this == 06) {
    return 'JUN';
  } else if (this == 07) {
    return 'JUL';
  } else if (this == 08) {
    return 'AUG';
  } else if (this == 09) {
    return 'SEP';
  } else if (this == 10) {
    return 'OCT';
  } else if (this == 11) {
    return 'NOV';
  } else if (this == 12) {
    return 'DEC';
  }
  return '';
}