//get an instance
Calendar cal = Calendar.getInstance();
//initialise the start or current date
Date today = cal.getTime();
//find the week start date
int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK);
cal.add(Calendar.DATE, dayofweek*-1);
Date startWeek = cal.getTime();
//compare if the date from file falls in the current week
if (today.compareTo(fileDate)<=0 && startWeek.compareTo(fileDate)>=0)
Затем вы можете получить даты окончания и начала следующей недели подряд, добавив -1 и -7 к текущей начальной неделе
ИЛИ вы также можете попробовать этот способ
//get an instance
Calendar cal = Calendar.getInstance();
//set date from file
cal.setTime(fileDate);
//find week of year
int weekOfYear = cal.get(Calendar.WEEK_OF_YEAR))
назначить его в соответствии со списком или массивом для отображения
Для форматирования даты
String strFileDate = "20100316T0305";
DateFormat formatter = new SimpleDateFormat("YYYYMMDDThhmm");
Date fileDate = (Date)formatter.parse(strFileDate);