I have set this calendar in my app:
Calendar cal = Calendar.getInstance();
cal.set(2010, 1, 10);
I'm using this SimpleDateFormat
to get the month as a word:
SimpleDateFormat formatMonth = new SimpleDateFormat("MM");
In one class it comes out as February
10th, 2010
.
In another it comes out as March
10th, 2010
.
Which is correct?