save before flutter upgrade
This commit is contained in:
11
lib/functions/month_name.dart
Normal file
11
lib/functions/month_name.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
import 'package:intl/intl.dart';
|
||||
|
||||
String monthName(int mes) {
|
||||
DateTime dateTime = DateTime(DateTime.now().year, mes);
|
||||
|
||||
String value = DateFormat('MMMM', 'es').format(dateTime);
|
||||
|
||||
value = value[0].toUpperCase() + value.substring(1);
|
||||
|
||||
return value;
|
||||
}
|
||||
Reference in New Issue
Block a user