I have the following code for getting the last Sunday before the current date:
Calendar calendar=Calendar.getInstance();
calendar.set(Calendar.WEEK_OF_YEAR, cale
Here is a snippet to calculate any last day of the week with Joda:
import org.joda.time.DateTime
import org.joda.time.DateTimeConstants
DateTime now = DateTime();
int offset = ((now.dayOfWeek - DateTimeConstants.THURSDAY) + 7) % 7;
DateTime lastThursday = now.minusDays(offset);
Just replace DateTimeConstants.THURSDAY
with your day of choice.