Hi, I am using the Calendar to setup a date string to display and I obtain each part separately using the Calendar.getInstance.get() method and passing it the DAY_OF_MONTH, MONTH, YEAR variables. The problem is I am currently getting a 0 for month. What I am doing wrong ? Thanks Daniel Serrano
posted 13 years ago
You're doing nothing wrong. For some reason, Calendar uses a 0-based index for months. I.e. 0=January, 1=February, 2=March and so on.