Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Event Calendar: $_DATES for repeating events

Go to End

4 Posts   2708 Views


Community Member, 18 Posts

7 November 2009 at 5:10am


I have a repeated event in my calendar. $_DATES returns for example
09. Nov. 2009 - 15. Mar. 2010

That is not what I want. I'd like to get 09. Nov. 2009 only. Would it be possible to expand $_DATES so that in case of a repeating event only the current date is displayed?


Forum Moderator, 4102 Posts

7 November 2009 at 5:47am

Great catch. I hadn't thought of that. In a recurring event, "end date" means something different than it does for a standard event. An end date for a standard event means that a given event spans multiple days, but for a recurring event, it's the date at which the event stops repeating.

I'll get in a patch asap.


Community Member, 18 Posts

8 November 2009 at 1:31am

Great! That would be great.

I tried to fix this until you check in your official update, but I did not manage to do it.
It seems most of
public function _Dates()
is meaningless, because everything is done within CalendarUtil::getDateString(). I not see how I can check if I have to deal with a repeating event, though. First I thougt CalendarDateTime's is_single attribute might do the job, but now I think I'm wrong because this is set for none of my events.

So I guess I will wait until you solve it.

Thank's a lot!


Community Member, 117 Posts

16 August 2011 at 11:42am

I know this is a really old post, but is this possible now?