If I have a datefield named myDateField with lets say the date 31-12-2005.
When I use myDateField.getMonth() I get 11 returned instead of 12.
This happends in Servoy 2.1.2 (MacOS X) and 2.2b3 (Win XP).
It’s zero based.
The value returned by getMonth is an integer between 0 and 11.
0 corresponds to January, 1 to February, and so on.
I guess I have to blame Sun/Netscape for this huh.
I wonder what they were smoking when they implemented it because it doesn’t make NO SENSE at all to make it zero based.
Oh well.. I already worked around it by adding 1.