getting date using week number and year

hi!

how can i get the date for a given year using a given week number?

assuming that the first day will be sunday?

for example..

the input year is 2006,

then the week number is 30

the result should be july 23 2006...

please help.. Thanks!

[289 byte] By [mhynea] at [2007-11-27 11:23:08]
# 1

play a little with the Calendar class. You might need some setters and maybe the add method to scroll to the previous Sunday.

CeciNEstPasUnProgrammeura at 2007-7-29 14:58:52 > top of Java-index,Java Essentials,Java Programming...
# 2

here is an example that might help:

http://www.exampledepot.com/egs/java.util/GetCurDate.html?l=rel

Raieda at 2007-7-29 14:58:52 > top of Java-index,Java Essentials,Java Programming...