Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getMondayDate from weekOfYear

Status
Not open for further replies.

ziziak

Programmer
Jul 13, 2007
11
SK
how can I get date of Monday accroding given weekOfYear

public Date getMonday(int weekOfYear){
...
}
 
Use the java.util.Calendar class I reckon.

Something like this...

Code:
Calendar cal = Calendar.getInstance();
cal.set(Calendar.WEEK_OF_YEAR, 3);
cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);
return cal.getTime;

Please note that this is straight out of my head so you may have to play around to get it working...

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top