quantlib.time.date.nth_weekday

nth_weekday(int size, int weekday, int month, int year)

Return the n-th given weekday in the given month and year

E.g., the 4th Thursday of March, 1998 was March 26th, 1998.

see http://www.cpearson.com/excel/DateTimeWS.htm