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.

Next runs (your time zone)

    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/command

    The expression has five fields, read left to right:

    FieldValueMeaning here
    Minute0at minute 0
    Hour9at hour 9
    Day of month*every day of the month
    Month*every month
    Day of week1-5Monday (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:00

    Friday 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

    SunMonTueWedThuFriSat
    Unix cron, Kubernetes, GitHub Actions0 or 7123456
    Quartz, AWS EventBridge1234567

    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-5 runs 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

    SchedulerExpression
    Unix cron, crontab0 9 * * 1-5
    Kubernetes CronJobschedule: "0 9 * * 1-5"
    GitHub Actions- cron: '0 9 * * 1-5'
    Quartz (Java, Spring)0 0 9 ? * MON-FRI
    AWS EventBridgecron(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.