Hello! I need to get the current date and time. Everything is displayed correctly, except for the month: it shows the 11th month.
java.util.Calendar c = java.util.Calendar.getInstance(); String sDate = c.get(Calendar.YEAR) + "." + c.get(Calendar.MONTH) + "." + c.get(Calendar.DAY_OF_MONTH) + " в " + c.get(Calendar.HOUR_OF_DAY) + ":" + c.get(Calendar.MINUTE); tv.setText(sDate);