I\'m trying to get the actual month from the Calendar using the following:
Calendar
Calendar c = Calendar.getInstance(); String time = String.v
Calendar.MONTH
returns
0 for 1st month (jan) 1 for 2nd month (feb) . . 11 for 12th month (dec)
Docs
So change your code to
String time = String.valueOf(c.get(Calendar.MONTH)+1);// added 1