I want to get the current month and for this I am using the following code:
Calendar calendar = Calendar.getInstance();
String mes = calendar.getDisplayName(Calendar.MONTH, Calendar.LONG, Locale.ENGLISH);
The problem is that for example now instead of returning April
is returning me March
.
Can anyone help me figure out what I'm putting down on getDisplayName
?