Question about cron setting mo-fr

Hi,

i’m using the scheduler plugin in Servoy 7.4 to add a cronjob which should run monday - friday at 6:30 pm and doing it this way:

plugins.scheduler.addCronJob('title', '0 30 18 ? * 1-5', method, startDate, endDate, args);

The job runs sunday - thursday.

To check the cron setting i use the follwing website:

https://cronexpressiondescriptor.azurew … &locale=en

Here the description for this cron setting is:

At 06:30 PM, Monday through Friday

So what’s going wrong?

Thank you!
Alex

What happens if you try this?

0 30 18 ? * MON-FRI

Thank you, i’ll try it!

Hi,

i want to give a short feedback.

The setting with MON-FRI works as expected!
So i’ll use this way an not 1-5

Thank you!
Alex