soulreaver soulreaver - 10 months ago 59
Android Question

Calendar.MONTH gives wrong value

I'm trying to get the actual month from the

using the following:

Calendar c = Calendar.getInstance();
String time = String.valueOf(c.get(Calendar.MONTH));

According the system settings "Settings --> Date & Time" actual month is 10 while
returns 09.


Keep in mind that months values start from 0, so October is actually month number 9.