mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 04:10:45 +01:00
always display proper month name
This commit is contained in:
parent
58b12bbb4f
commit
d6507ffb34
@ -65,6 +65,7 @@ public class Formatter {
|
||||
|
||||
public static String getMonthName(int id) {
|
||||
final Date date = new Date();
|
||||
date.setDate(1);
|
||||
date.setMonth(id);
|
||||
String month = DateFormat.format("LLLL", date).toString();
|
||||
return month.substring(0, 1).toUpperCase() + month.substring(1).toLowerCase();
|
||||
|
Loading…
x
Reference in New Issue
Block a user