Recurrence Helper for Node Backend

I saw there's a helper library to calculate recurring event occurrences in the backend with C#. I'm using Node serverside, is there a similar library for JS / TS or a helper method from the frontend that can be used without a DOM?

https://support.syncfusion.com/kb/article/11818/how-to-parse-the-recurrence-rule-rrule-in-server-side


3 Replies 1 reply marked as answer

VR Vijay Ravi Syncfusion Team September 30, 2025 07:38 AM UTC

Hi Thomas Pentenrieder,

Greetings from Syncfusion Support,
 

Currently, recurrenceHelper is only available for the C# platform. It is not available for the TS and JS platforms. Therefore, we are unable to provide any workaround for this case.


Don't hesitate to get in touch if you require further help or more information.
 

Regards,

Vijay


Marked as answer

TP Thomas Pentenrieder October 1, 2025 11:24 AM UTC

The logic has to be already there in the frontend package, perhaps you can log this as a feature request to have this extracted as a reusable method for any TS / JS use.


Thanks



VN Viswajith Nagarajan Syncfusion Team October 7, 2025 02:05 PM UTC

Hi Thomas Pentenrieder,


We’ve reviewed your query and prepared a simple Node.js sample project for your reference. This sample uses Express.js to set up a local web server and demonstrates how to use the generate method from the Syncfusion package to calculate and display recurring dates. It offers a practical example to help you implement this logic on your backend.


In the sample, you just need to install the @syncfusion/ej2-schedule package and import the generate function. You can then use it directly in your Node.js backend to achieve your scenario—no frontend or DOM dependency required. Please refer the sample project attached and below code snippets.



// import the generate function
import { generate } from '@syncfusion/ej2-schedule';

// 1. Define the start date

const startDate = new Date(2024, 4, 20); // May 20, 2024

 

// 2. Define the recurrence rule

const rule = 'FREQ=DAILY;COUNT=10';

 

// 3. Call `generate` with all required arguments

// We pass '' for excludeDate (no exclusions) and 0 for startDayOfWeek (Sunday).

const recurrenceTimestamps: number[] = generate(startDate, rule, '', 0);


// 4. Store the date range collections and use it

const recurrenceDates = recurrenceTimestamps.map(ts =>

        new Date(ts).toLocaleString('en-IN', { timeZone: 'Asia/Kolkata' })

    );

 



Steps to Run the Attached Project:


Step 1: Extract the attached project folder to your desired location.


Step 2: Open your terminal, navigate to the project folder, and run the following commands:

npm install

npx ts-node src/index.ts

Once the server starts, you’ll see a message confirming it's running 

Step 3: Open your web browser and go to this address: http://localhost:3000


If you have any questions or need further assistance, please don’t hesitate to reach out. We’re happy to help!



Regards,

Viswajith Nagarajan


Attachment: Recurrencemethodnodeapp_ad4cbbfd.zip

Loader.
Up arrow icon