Crown expression or logic for running bot on last day of Month

Crown expression or logic for running bot on last day of Month. If last day of month is saturday and if this saturday is 3rd or 5th saturday then only it should run else if LWD is friday then it will run

Hi @Shirish_Pathak

Take a look at this Cron Expression:
0 0 18 LW * ? *

Description:
At 6pm, on the last weekday of the month, every month

Does that work for you?

Cheers

Steve

Hello @Shirish_Pathak , Try this 0 0 18 LW * ?
If the last day of the month is Saturday Sunday, it will run on Friday.

Next cron execution dates for you refeence

  • Fri Jul 29 18:00:00 UTC 2022
  • Wed Aug 31 18:00:00 UTC 2022
  • Fri Sep 30 18:00:00 UTC 2022
  • Mon Oct 31 18:00:00 UTC 2022
  • Wed Nov 30 18:00:00 UTC 2022
  • Fri Dec 30 18:00:00 UTC 2022
  • Tue Jan 31 18:00:00 UTC 2023
  • Tue Feb 28 18:00:00 UTC 2023
  • Fri Mar 31 18:00:00 UTC 2023
  • Fri Apr 28 18:00:00 UTC 2023

If the condition is not possible on cron I think so. I not sure about it