Cron Every Weekday
The 1-5 range in the day-of-week field means Monday through Friday. With 0 0 in the minute and hour fields, the job runs at midnight on every weekday and skips weekends.
Cron Expression
0 0 * * 1-5Field Breakdown
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | At minute 0 |
| Hour | 0 | At midnight (00:00) |
| Day of Month | * | Every day of the month |
| Month | * | Every month (1-12) |
| Day of Week | 1-5 | Monday through Friday |
Variations
0 0 * * 1-5Every weekday at midnight0 9 * * 1-5Every weekday at 9 AM (business hours start)*/30 9-17 * * 1-5Every 30 minutes during business hours, weekdays onlyCommon Use Cases
- Business-hours jobs that should skip weekends
- Daily standup or reminder notifications
- Workday-only data syncs and report generation
Tips & Best Practices
Use the range 1-5 for Monday-Friday; names also work: MON-FRI.
Combine with an hour range (e.g. 9-17) for business-hours-only schedules.
If both day-of-month and day-of-week are restricted, cron runs when EITHER matches — keep day-of-month as * here.