0 0 * * 1-5 Monday through Friday at 00:00 weekdays The cron expression 0 0 * * 1-5 runs a job at 00:00 on weekdays (Monday-Friday). The day-of-week field 1-5 is the key: standard crontab accepts ranges like 1-5 (Monday through Friday) and lists like 6,0 (Saturday and Sunday), with Sunday written as either 0 or 7. Restricting the weekday field while leaving day-of-month and month as wildcards is the canonical way to express business-day automation: weekday digests, standup reminders, market-open data pulls, or weekend-only maintenance that must never run on a workday. Because the schedule skips weekend days entirely, the gap between Friday's run and Monday's run is three days — design idempotent jobs and catch-up logic with that hole in mind, especially for incremental syncs that assume a daily cadence. Platform numbering differs (Quartz treats Sunday as 1), so the conversion table below uses unambiguous day names. You will also find the five-field breakdown, the next five run times computed at build time, and notes on time zones and daylight saving for fixed morning slots.
Field-by-field breakdown
| Field | Value | Meaning |
|---|---|---|
| minute | 0 | only at minute 0 |
| hour | 0 | only at hour 0 |
| day-of-month | * | every day-of-month (wildcard, no restriction) |
| month | * | every month (wildcard, no restriction) |
| day-of-week | 1-5 | every day-of-week from 1 through 5 inclusive |
Next 5 run times (UTC)
Computed at build time; cross-check against your server's time zone before deploying.
2026-12-07 00:00 UTC2026-12-08 00:00 UTC2026-12-09 00:00 UTC2026-12-10 00:00 UTC2026-12-11 00:00 UTC
When to use this schedule
- Business-day digests, standup reminders and sprint automation that should stay silent on weekends.
- Market-open or office-open data pulls where weekend runs would fetch stale or closed-market data.
- Weekday-only syncs to HR, ticketing or CRM systems that staff act on during working days.
- Weekend maintenance windows (the inverse list) for disruptive work that must never hit a workday.
Equivalent syntax
The same schedule expressed for popular schedulers and platforms:
0 0 * * 1-5 /usr/local/bin/job.sh # Monday through Friday at 00:00 0 0 0 ? * MON-FRI # Quartz (Java): 6-7 fields, leading seconds, '?' when day-of-week is set 0 0 0 * * MON-FRI # Spring @Scheduled: 6 fields, leading seconds, day names accepted 0 0 * * 1-5 # Kubernetes CronJob schedule field: standard 5-field syntax cron(0 0 ? * MON-FRI *) # AWS EventBridge: 6 fields incl. year, '?' required in one day field Caveats & gotchas
- Cron evaluates schedules in the server's local time zone; set CRON_TZ (cronie) or TZ (containers) explicitly on shared or distributed infrastructure.
- Daylight saving transitions can shift, duplicate or skip wall-clock slots in local-time zones; scheduling in UTC removes the ambiguity.
- When both day-of-month and day-of-week are restricted, standard cron ORs them; keep one of the two as '*' unless you want that behavior.
Verify your schedule
After installing the schedule, verify it end to end instead of trusting the crontab line. Run 'crontab -l' to confirm the entry survived editing, then execute the command manually with the same user and environment to catch PATH and permission problems — cron runs with a minimal environment, so absolute paths and explicit SHELL/PATH declarations prevent the classic 'works in my terminal, fails in cron' bug. Watch the daemon log ('grep CRON /var/log/syslog' on Debian/Ubuntu, 'journalctl -u cron' or '-u crond' on systemd hosts) to confirm the trigger fires at the expected times, and redirect the job's own output to a log file with 2>&1 so failures are not swallowed by mail. Finally, cross-check the next run times listed on this page against your server's time zone before declaring the schedule correct.
Frequently asked questions
What is the cron expression for weekdays only?
Use day-of-week 1-5, as in 0 0 * * 1-5. Monday is 1 and Friday is 5 in standard crontab; Saturday and Sunday (6 and 0) are excluded.
How do I schedule weekends only?
Use a list: '0 9 * * 6,0' runs Saturday and Sunday. Sunday can be written 0 or 7; both work in standard cron.
Why is there a three-day gap in my weekday schedule's logs?
Because Friday's run is followed by Monday's — the weekend is skipped by design. Incremental sync jobs must tolerate the gap or run a catch-up pass on Monday.
Try the Cron Parser
Decode cron schedules and preview the next run times.