开发者

Recurrence Library for date calculations for .Net [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 9 years ago.

开发者_Go百科 Improve this question

is there a free recurrence library that is available that we could use ?, we are looking for something like we supply the date time and the type of recurrence (daily, Monthly, Weekly and the interval(say for every 2 weeks or months or days) and we get a list of future dates ???

Thanks Nen


I am using dday-ical at sourceforge for recurrence calculations.

Beside loading and and saveing ical files it can interpretete calendar-recurrencerules a la

every 4th friday in every month but not on xmas

Have a look at mozilla-calendar (sunbird) or microsoft outlook to see how complex recurrence dates can be.

Update:

The project has moved to https://github.com/rianjs/ical.net and is available using Nuget: iCal.Net


Aspose.iCalendar, which is part of their Aspose.Network product, seems to have what you want:

//Ten team meetings, every Monday at 10am.
RecurrencePattern pattern = new RecurrencePattern(
  "DTSTART:20040301T100000\n" +
  "RRULE:FREQ=WEEKLY;COUNT=10;BYDAY=MO");
DateArray dates = pattern.GenerateOccurrences();

However, buying Aspose.Network just for that functionality is probably overkill.


Take a look at Itinerary. It does exactly this.

Disclosure: I'm the project maintainer.


You might want to read this blog post by Jon Skeet on the subject, referring to the Noda Time library.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜