getMonthName method
- int m
Returns the abbreviated month name for the given month number.
Implementation
String getMonthName(int m) {
const monthNames = [
"JAN", "FEB", "MAR", "APR", "MAY", "JUN",
"JUL", "AUG", "SEP", "OCT", "NOV", "DEC"
];
return (m >= 1 && m <= 12) ? monthNames[m - 1] : "DEC";
}