T
ToolPrime

Cron Expression for Monday to Friday at 9 AM

Run a cron job at 9 AM every weekday using 0 9 * * 1-5. The go-to schedule for daily business notifications and reports.

Expression

0 9 * * 1-5

At 09:00 Monday through Friday

Use Cases

Code Examples

Crontab

# At 09:00 Monday through Friday
0 9 * * 1-5 /path/to/your/script.sh

GitHub Actions

name: Scheduled Job
on:
  schedule:
    - cron: '0 9 * * 1-5'
jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: echo "Running Monday to Friday at 9 AM"

systemd Timer

[Unit]
Description=Monday to Friday at 9 AM timer

[Timer]
OnCalendar=*-*-* *:*:00
Persistent=true

[Install]
WantedBy=timers.target

node-cron (Node.js)

import cron from 'node-cron'

// At 09:00 Monday through Friday
cron.schedule('0 9 * * 1-5', () => {
  console.log('Running Monday to Friday at 9 AM')
})

Spring (@Scheduled, Java)

// At 09:00 Monday through Friday
@Scheduled(cron = "0 0 9 * * 1-5")
public void run() {
    // your task
}

Spring cron has 6 fields (a leading seconds field), so a 0 is prepended to the standard 5-field expression.

Tips

Frequently Asked Questions

Does this skip weekends?

Yes, 1-5 in the day-of-week field means Monday through Friday only. The job will not run on Saturday or Sunday.

How do I add this to my crontab?

Run crontab -e and add the line: 0 9 * * 1-5 /path/to/your/script.sh. Save and exit to activate.

Related Cron Expressions

Related Tools