Run a Cron Job Every Wednesday
To run a job every Wednesday, set the day-of-week field to 3. For example, 0 9 * * 3 runs at 9:00 AM every Wednesday. Adjust the hour and minute for your time.
The expression
0 9 * * 3 runs at 09:00 every Wednesday. Fields: minute (0), hour (9), day-of-month (*), month (*), day-of-week (3).
Day-of-week numbering
Sunday 0 (or 7), Monday 1, Tuesday 2, Wednesday 3, Thursday 4, Friday 5, Saturday 6. The name form also works: 0 9 * * WED.
Change the time
Pick your slot with minute and hour — e.g. 0 12 * * 3 for noon every Wednesday. Combine days for a mid-week pair: 0 9 * * 2,4 is Tuesday and Thursday.
FAQ
What is the cron expression for every Wednesday?
0 9 * * 3 runs at 9 AM every Wednesday. The 3 is Wednesday; change the hour and minute for another time.
What number is Wednesday in cron?
Wednesday is 3 (Sunday=0). You can also write the name WED.
How do I run a job on Wednesday and Friday?
List both days: 0 9 * * 3,5 runs at 9 AM on Wednesday and Friday.