Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
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