Do you want the all ’Fridays 13rd dates’ for this year? Great JAVA library implementing ical Recurrence Rules.
David Marko 25 June 2013 10:09:57Sometimes a good library can save you a tons of code. I was trying to figure out recently how to efficiently implement mechanism, that can return a list of dates that pass certain rules. I have to create some periodical documents for each date based on user defined rules like: "every TU and FRI every 2 weeks for first month in quarter", or "every first and last Monday in month" etc. There are many scenarios I had to take in account. I was thinking about the code first but then I googled for a while and found the following library, that implements exactly what I need in very general way based on RFC for (ical) recurrence rules. So ... here are some links that can be useful for you for certain kind of application .
A java implementation of RFC 2445 (ical) recurrence rules:
Well known JodaTime library is required for real usage, so here is the link:
The link to RFC that describes many examples that are applicable for this JAVA library also:
- Comments