How to end recurring after occurences_count ?

Hello,

I am using pro version.

Since I need to customizing all html for lightbox so I made myself one
and I don’t use built-in popup window to make events.

I needed to process to stop recurring after certain times of recurrence.

I get that you save occurences_count value at the end of rec_type after “#”
and found that it was just for showing and editing the setting in the lightbox form.

so how can I make it stop recurring after occurences_count this value?
are there any helpful methods for it?

Hello,
this is specified by the end_date of the series - you need to set it to the date right after the date of the last occurrence you want to show