0

Can someone help me with cron expression for following?

Mondays that fall between the 5th and 20th of a month. I wrote following

30 18 5-20 * 1

But it runs on all dates between 5 and 20 and also on Mondays (i.e. Mondays outside of the given range).

ThinkGeek
  • 4,749
  • 13
  • 44
  • 91
  • 1
    Cron will run the job if any of the conditions is true, so you can't restrict by both date range and day of week. See [this answer](https://stackoverflow.com/a/37628629/13843268) for more details. – sj95126 Nov 07 '22 at 17:21

0 Answers0