GetUTCMonth gives wrong value
-
Today = new Date(); return Today.getUTCMonth();
This code returns 11 instead of 12. My system clock shows December.
What's happening?Thank you
-
Hi,
please read the oracle (sun) javadocs api
http://download.oracle.com/javase/6/docs/api/java/util/Date.html#getMonth()
! It will set you into the right track.Arne
-
Clear like water.
Thank you very much.
January = 0
....
December = 11