apologies. i tried the GregorianCalendar actually but seem to keep getting the wrong date. okay... my code is as follows: GregorianCalendar myCalendar=new GregorianCalendar(); String s=myCalendar.getTime().toString(); int year = myCalendar.get(GregorianCalendar.YEAR); int month = myCalendar.get(GregorianCalendar.MONTH); int date = myCalendar.get(GregorianCalendar.DATE); System.out.println("Now: "+year+"-"+month+"-"+date); the year and date is returns the correct value. But for month, it returns february instead of march. can anyone enlighten me on this? Warmest Regards, Jim Wong On 09 Mar 2006, at 11:44 PM, Mark Morris wrote: Is this actually a test to determine just how accommodating the readers of this list are? |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to archive@mail-archive.com