Cron Every Weekday
Run a cron job every weekday (Monday through Friday) at midnight using 0 0 * * 1-5. Full field breakdown and business scheduling examples.
Cron Expression
0 0 * * 1-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-5 | From Monday to Friday |
Detailed Explanation
The cron expression 0 0 * * 1-5 schedules a task to run once per day on weekdays only, 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 weekday.*(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-5(Day of Week): Monday through Friday. The range1-5covers all five business days, excluding Saturday (6) and Sunday (0).
This means your task will execute 5 times per week, once at midnight on each business day. This is one of the most important cron patterns for business applications because many automated processes only need to run during the work week. Skipping weekends conserves resources and avoids generating unnecessary data or alerts when no one is working. 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
Commonly used for preparing daily business intelligence reports that are only relevant during the five-day work week.
Try It — Interactive Builder
Every weekday at 12:00 AM
Next 10 Executions
Ctrl+Shift+C to copy expression