CRON expression for first and last working day of every month. help!

Hi Everyone,

I have to schedule a process every first and last working day of every month [process run time is not fixed yet] and the working days are Sunday to Thursday. It should also able to handle the leap year.

Please help me to create CRON expression for above given condition.

Thanks in advance

1 Like

@kishore.shetty

You can schedule as below

First Working Day of Every Month
0 0 0 1W*?*

Last Working Day of Every month
0 0 0 LW * ? *

Make sure that enable non working days in orchestrator

Mark as solution if this helps

Thanks

5 Likes

Thanks a lot @Srini84 :slightly_smiling_face:

One last doubt. What if the same expression has to be ran only on weekends, in my case friday and saturday

1 Like

@kishore.shetty

You can try as below

0 0 0 ? * FRI,SAT *

Thanks

2 Likes

Sorry @Srini84 I should have been more clear. first and last weekend (Friday & Saturday) of every month

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.