Don Hill
Posts: 70
Nickname: ssswdon
Registered: Jul, 2002
|
|
Re: Getting the starting date of the week, if the week number is given
|
Posted: Aug 23, 2002 2:35 PM
|
|
> Hi All, > > Does Java provides the API to get the first date of > the starting week, if the week number is mentioned? > If not, then what could be the correct approach to > get the starting date for the week mentioned? > > Thanks
I think you need to do something like this.
Calendar cal = new GregorianCalendar(); cal.set( Calendar.WEEK_OF_YEAR, 35 ); cal.set( Calendar.DAY_OF_WEEK, 0); System.out.println("date \n" + cal.get(Calendar.MONTH) + "/" + cal.get(Calendar.DAY_OF_MONTH) + "/" + cal.get(Calendar.YEAR)); HTH
|
|