Call the function just like a stored procedure to get your date.
Make this call from visual studio within a For Loop to get scheduling dates.
I use this function in conjunction with a .Net control that I created for scheduling recurring events. Users can set events on the Nth day of a given month or from a start date to an end date.