I have week number and year, and I would like to get the date of the first day of week and the last one, this is my code, it gives me wrong result, please tell me what I'm I doing wrong. thanks in advance.
SimpleDateFormat dt = new SimpleDateFormat("dd/mm/yyyy");
String start ="";
String end ="";
int week = 38;
int yeat = 2016;
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.WEEK_OF_YEAR, week);
calendar.set(Calendar.YEAR, year);
// firt day of week
start = dt.format(calendar.getTime());
calendar.add(Calendar.DAY_OF_MONTH, 6);
//last day of week
end = dt.format(calendar.getTime());