views:

196

answers:

1

How would I set up a gregorian calendar in cocoa touch and set an event that will repeat every X days?

Thanks

A: 

this is a huge question. What is precisely your question?

Ok. I want to see what date a day will land on on a 25 day cycle between two given dates. So, I know to get the cycle I would do sin(2*pi*(numberOfDaysDifferenceBetweenDates/2) BUT I also want to know what the actual date is. So lets say I have two dates. The first date is 1/1/1915 and the second date is today. If I pick the date of 2/3/1987 I want to know which day it is in that 25 day cycle since 1/1/1915. Make sense?
Xcoder