tags:

views:

459

answers:

1

Hi,

I would like to find out the date of the Monday in this year's ISO week 1 (For 2009 this would be Monday, Dec 29 2008).

I'm sure that joda-time can handle this, but I just can't figure out the API (maybe it's just too late).

Can anyone help? Thanks!

+4  A: 

I believe this should work:

DateMidnight date = new DateMidnight().withWeekOfWeekYear(1).withDayOfWeek(1);
Blake Pettersson
Thanks, Blake! Exactly what I was looking for. For the archive, "withWeekOfWeekYear()" must be spelled "withWeekOfWeekyear()" (lowercase y).
sapporo