Cron expression: every Wednesday at midnight
0 0 * * 3
Runs once a week, on Wednesday at 00:00.
What each field means
| Field | Value | Meaning |
|---|---|---|
| minute | 0 | minute 0 |
| hour | 0 | hour 0 |
| day of month | * | every day of month |
| month | * | every month |
| day of week | 3 | day of week 3 |
Next runs
Starting from 1 January 2026, 00:00 UTC:
- Wednesday 7 Jan 00:00
- Wednesday 14 Jan 00:00
- Wednesday 21 Jan 00:00
- Wednesday 28 Jan 00:00
- Wednesday 4 Feb 00:00
- Wednesday 11 Feb 00:00
Things to watch
Weekly jobs at midnight on a single day are a good fit for reports and cleanups. Add a few minutes of offset if several weekly jobs would otherwise start simultaneously.
The same schedule elsewhere
# crontab
0 0 * * 3 /usr/local/bin/my-job >> /var/log/my-job.log 2>&1
# GitHub Actions (.github/workflows/job.yml) — always UTC
on:
schedule:
- cron: '0 0 * * 3'
# Kubernetes CronJob
spec:
schedule: "0 0 * * 3"
# AWS EventBridge — six fields, and ? in one of the day fields
cron(0 0 ? * 3 *)
Frequently asked questions
What is the cron expression to run a job every Wednesday at midnight?
0 0 * * 3
Which time zone does cron use?
The server's local time zone, unless the scheduler says otherwise. GitHub Actions always uses UTC. Kubernetes CronJobs use UTC unless you set spec.timeZone. Running servers in UTC and converting only for display avoids an entire class of daylight-saving bugs.
What happens if the previous run is still going?
Standard cron starts a new one regardless, so long-running jobs can pile up. Wrap the command in flock -n /var/lock/my-job.lock, or set concurrencyPolicy: Forbid on a Kubernetes CronJob.
Why did my cron job not run at all?
The three usual causes: the script is not executable, the command relies on a PATH or environment variable that cron does not set, or output went nowhere because no mail transport is configured. Redirect stdout and stderr to a log file and the reason usually becomes obvious.