mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 14:47:23 +00:00
20 lines
346 B
Dart
20 lines
346 B
Dart
extension GetMonthNameFromNumber on num {
|
|
String get getMonthName {
|
|
return switch (this) {
|
|
1 => 'JAN',
|
|
2 => 'FEB',
|
|
3 => 'MAR',
|
|
4 => 'APR',
|
|
5 => 'MAY',
|
|
6 => 'JUN',
|
|
7 => 'JUL',
|
|
8 => 'AUG',
|
|
9 => 'SEP',
|
|
10 => 'OCT',
|
|
11 => 'NOV',
|
|
12 => 'DEC',
|
|
_ => 'N/A'
|
|
};
|
|
}
|
|
}
|