Get occurrence date in recurring events

Hi, I have a problem using recurring events. Is there a function that for a specific rec_type and a sysdate return true if sysdate is one of the recurring date?
For example if I have an event with startDate=‘2010-01-01’ and sysdate=‘2010-01-04’ and rec_type=‘month 1__#no’ the function should return true
Please help me

best regards

Alfonso Calciano

There is no helper with exactly same functionality.

If you need to check this on the client side, you can use getEvents method for desired date. It will return array of events ( including recurring ones ) which are occurs on that date.

Hi Stanislav,thanks but the method getEvents() returns all the events which started before ‘to’ date, and finished after ‘from’ date.what i need is a function that tells me if today i have recurring events that recurs exacly today for sending a mail to someone for remember that today ha has a events that recur

Still I think , that getEvents can be used for such task.

[code]var today = scheduler.date.date_part(new Date());
var tomorrow = scheduler.date.add(today, 1 , “day”);

var evs = scheduler.getEvents(today, tomorrow);
for (var i =0; i<evs.length; i++){
if (evs[i].rec_type)
alert(evs[i].text); //instance of recurring events, which recurs today
}[/code]

for sending a mail to someone
Most probably you will need to get such info on server side ( to send the email ) , so js solution is not really useful in any case.

You’re right, infact i need a java function to do this on server side,probably the only way is to implement an algorithm to implement the same funcionality of the getEvents() method. Is there something like that?

Unfortunately there is no such helper for java ( we have it in plans )