Working with NSCalendar -- getting the next first tuesday of a month
- by Bjorn S.
Hi all,
This is a bit odd, but is it possible to use an NSCalendar (or any component, for that matter) to figure out what the date of the next "first tuesday of the month" would be?
For example, today is Thursday March 25, 2010. The next "first tuesday of the month" would be on April 6. Likewise, if I were looking for the next "first tuesday of the month" on April 1, it would still be on April 6.
How would you do this?
Thanks very much!!!!!