Re: Bogus Gregorian Calendar
Re: Bogus Gregorian Calendar
- Subject: Re: Bogus Gregorian Calendar
- From: Art Isbell <email@hidden>
- Date: Thu, 17 Jun 2004 15:46:28 -1000
On Jun 17, 2004, at 3:39 PM, Greg Hulands wrote:
I am getting the current date by doing:
GregorianCalendar now = new GregorianCalendar();
But the only thing is that it is not using the correct month.
I logged it to the console and got this. The month is 5 not 6.
In Sun's infinite wisdom, month of year indices are zero-based unlike
those for day of month, day of week, etc. Welcome to the wonderful
world of Java.
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.