Here is what I am trying to do: Given a date, a day of the week, and an integer n, determine whether the date is the nth day of the month.
n
You can find a function which returns a date for the nth occurrence of particular week day in any month.
See http://chiragrdarji.wordpress.com/2010/08/23/find-second-saturday-and-fourth-saturday-of-month/