views:

318

answers:

1

I need to calculate the date of the first day in a calendar week, e.g.

Week 1 in 2009 -> Mon, 29.12.2008 (!)
Week 44 in 2009 -> Mon, 26.10.2009

I have some ugly code for this, but I would prefer a nice C++ lib.

Any suggestions?

Thanks.

+2  A: 

what about boost::gregorian::date with its algorithms ?

fa.
Looks much better.Thanks!
I'm thinking that the Boost's Date Time is the best solution!
Davit Siradeghyan
For those, who are interested: http://paste.pocoo.org/show/148032/