Hello,
I have a concern with the Calendar API in java. I run the following code:
I would like my calendar points to the 1st week of 2009. But it points after:Code:String str = "200901"; Calendar cal = new GregorianCalendar(); cal.set(Calendar.YEAR, Integer.function valueOf() { [native code] }(str.substring(0, 4)); cal.set(Calendar.WEEK_OF_YEAR, Integer.function valueOf() { [native code] }(str.substring(4, 6));
Any help on this?Code:new GregorianCalendar()
Bookmarks