Cron Job Every weekday

Run a task at midnight Monday through Friday. Use the cron string 0 0 * * 1-5, see the next 5 execution times, and copy Python, Node.js, Bash and n8n snippets.

Quick Answers

What does the "Every weekday" cron expression mean?
This cron expression is "0 0 * * 1-5", which in plain English means: Run a task at midnight Monday through Friday..
When will this cron expression run next?
With the expression "0 0 * * 1-5", the next execution times are Mon, Aug 17, 2026, 12:00:00 AM UTC, Tue, Aug 18, 2026, 12:00:00 AM UTC, Wed, Aug 19, 2026, 12:00:00 AM UTC.
How do I use this cron expression?
Copy the exact string into crontab, cron triggers, or any scheduler such as GitHub Actions, n8n or Docker. Pre-built code snippets for Python, Node.js, Bash, Docker, GitHub Actions and n8n are included on this page.
Explore the full Cron Cheat Sheet with all 50 schedules
Cron Expression
Copy this exact string into crontab, cron triggers, or schedulers.
0 0 * * 1-5

Human readable

Run a task at midnight Monday through Friday.

Next 5 execution times

  1. 1Mon, Aug 17, 2026, 12:00:00 AM UTC
  2. 2Tue, Aug 18, 2026, 12:00:00 AM UTC
  3. 3Wed, Aug 19, 2026, 12:00:00 AM UTC
  4. 4Thu, Aug 20, 2026, 12:00:00 AM UTC
  5. 5Fri, Aug 21, 2026, 12:00:00 AM UTC
Python
from crontab import CronTab
from datetime import datetime

# Install: pip install python-crontab
cron = CronTab(user=True)
job = cron.new(command="/usr/bin/python3 /var/www/job_every-weekday.py", comment="scheduled by crongen")
job.setall("0 0 * * 1-5")
cron.write()

print(f"Installed: 0 0 * * 1-5 -> /usr/bin/python3 /var/www/job_every-weekday.py")

About the "every weekday" cron schedule

The "every weekday" cron schedule uses the expression "0 0 * * 1-5". This schedule fires 5 times per week.

In plain English the cron string "0 0 * * 1-5" means: At 12:00 AM, Monday through Friday.

This cadence is a common choice for business-hours automation that should stay quiet on weekends and office reports and data exports timed for working days. The schedule is deliberately kept simple: copy the string into any cron-aware scheduler (crontab, Vercel Cron, GitHub Actions, n8n, Docker or Kubernetes CronJob) and the run will repeat automatically — steady, with no manual triggering.

Frequently asked questions