Cron expression for every weekday at 9am
0 9 * * 1-5 runs at 09:00 from Monday to Friday. In Unix cron, 1 is Monday and 5 is Friday.
This tool runs in your browser. We never send what you type or paste to a server.
The expression
0 9 * * 1-5 /path/to/commandThe expression has five fields, read left to right:
| Field | Value | Meaning here |
|---|---|---|
| Minute | 0 | at minute 0 |
| Hour | 9 | at hour 9 |
| Day of month | * | every day of the month |
| Month | * | every month |
| Day of week | 1-5 | Monday (1) to Friday (5) |
When it runs
Starting from Wed 2027-01-06 10:07 UTC, the next runs are:
Thu 2027-01-07 09:00
Fri 2027-01-08 09:00
Mon 2027-01-11 09:00
Tue 2027-01-12 09:00
Wed 2027-01-13 09:00
Thu 2027-01-14 09:00
Fri 2027-01-15 09:00Friday is followed by Monday: nothing runs on Saturday 9 or Sunday 10 January.
Cron uses the time zone of the machine or service that runs it. The explainer at the top of this page shows the next runs in your own time zone.
Weekday numbers and names
| Sun | Mon | Tue | Wed | Thu | Fri | Sat | |
|---|---|---|---|---|---|---|---|
| Unix cron, Kubernetes, GitHub Actions | 0 or 7 | 1 | 2 | 3 | 4 | 5 | 6 |
| Quartz, AWS EventBridge | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
So 1-5 is Monday to Friday in a crontab but Sunday to Thursday in Quartz and AWS. Unix cron, Kubernetes, Quartz and AWS all accept the name form MON-FRI, which removes the doubt:
0 9 * * MON-FRI the same schedule, by name
0 9 * * 6,0 weekends at 09:00
0 9 * * 1 Mondays only
*/30 9-17 * * 1-5 every 30 minutes in working hours
What it will not do
- Public holidays. Cron knows nothing about them. Have the script check a holiday list and exit early.
- Your 9am. It is 09:00 where the server is. For a team in several zones, schedule in UTC on purpose and say so.
- Combine with a day of the month. Adding a day-of-month value makes cron run on either match.
0 9 1 * 1-5runs on the 1st and on every weekday, not only when the 1st is a weekday.
Quartz adds a seconds field at the front, AWS adds a year at the end, and both need ? in one of the two day fields. See how the syntaxes differ.
The same schedule in other schedulers
| Scheduler | Expression |
|---|---|
| Unix cron, crontab | 0 9 * * 1-5 |
| Kubernetes CronJob | schedule: "0 9 * * 1-5" |
| GitHub Actions | - cron: '0 9 * * 1-5' |
| Quartz (Java, Spring) | 0 0 9 ? * MON-FRI |
| AWS EventBridge | cron(0 9 ? * MON-FRI *) |
Questions
What is the cron expression for Monday to Friday?
Put 1-5 (or MON-FRI) in the fifth field. 0 9 * * 1-5 runs at 09:00 every weekday.
Why does my weekday job run on Sunday in AWS or Quartz?
They number weekdays from Sunday = 1, so 1-5 means Sunday to Thursday there. Use MON-FRI, or 2-6.
How do I skip public holidays in cron?
Cron cannot. Make the first step of the job check the date against a holiday list or calendar API and exit if it matches.