Cron Every Monday, Wednesday, and Friday
Schedule a cron job on Monday, Wednesday, and Friday at midnight with 0 0 * * 1,3,5. Field breakdown and alternate-day scheduling examples.
Cron Expression
0 0 * * 1,3,5
Field Breakdown
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | At 0 |
| Hour | 0 | At 0 |
| Day of Month | * | Every day of the month (1–31) |
| Month | * | Every month (1–12) |
| Day of Week | 1,3,5 | At Monday, Wednesday, Friday |
Detailed Explanation
The cron expression 0 0 * * 1,3,5 schedules a task to run three times per week, on Monday, Wednesday, and Friday at midnight.
Field-by-field breakdown:
0(Minute): At minute 0. The task fires at the start of the hour.0(Hour): At hour 0 (midnight). The task runs at the beginning of each specified day.*(Day of Month): Every day from 1 through 31. No restriction on the day of the month.*(Month): Every month from January through December. No restriction on the month.1,3,5(Day of Week): Monday (1), Wednesday (3), and Friday (5). The comma-separated list selects these three specific days.
This means your task will execute 3 times per week on alternating weekdays. This schedule provides good coverage throughout the work week with roughly two-day gaps between each run. It is a common pattern for tasks that need more frequent execution than weekly but less than daily, such as triweekly data syncs, compliance checks, or rotating backup schedules. This expression is supported by standard cron on Linux/macOS, as well as cloud services like AWS CloudWatch, Google Cloud Scheduler, and GitHub Actions.
Use Case
Great for running automated code quality scans on your main branch three times a week to catch issues early without overloading CI resources.
Try It — Interactive Builder
Every Monday, Wednesday, Friday at 12:00 AM
Next 10 Executions
Ctrl+Shift+C to copy expression