How to get first day of a given week number in Java
问题 Let me explain myself. By knowing the week number and the year of a date: Date curr = new Date(); Calendar cal = Calendar.getInstance(); cal.setTime(curr); int nweek = cal.WEEK_OF_YEAR; int year = cal.YEAR; But now I don't know how to get the date of the first day of that week. I've been looking in Calendar, Date, DateFormat but nothing that may be useful... Any suggestion? (working in Java) 回答1: Those fields does not return the values. Those are constants which identifies the fields in the