Jul 18, 2007 #1 ziziak Programmer Joined Jul 13, 2007 Messages 11 Location SK how can I get date of Monday accroding given weekOfYear public Date getMonday(int weekOfYear){ ... }
Jul 18, 2007 #2 timw Programmer Joined May 3, 2000 Messages 1,264 Location GB 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 Upvote 0 Downvote
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