Cron expression for every Sunday
0 0 * * 0At 00:00, on Sunday.
Sunday is 0 (and 7 on most systems). This runs every Sunday at midnight, the same as @weekly.
Try it and tweak it
Change any field below and the preview updates. Set the time zone to match your server.
✓ Valid cron
At 00:00, on Sunday.
Next 10 runs
Calculating in your browser…
Times are computed in your browser for the selected zone and are informational. The server that runs the job uses its own zone (often UTC) and cron flavour, so verify there.
Same schedule in other dialects
Unix crontab
0 0 * * SUNQuartz
0 0 0 ? * SUNSpring @Scheduled
0 0 0 ? * SUNAWS EventBridge
cron(0 0 ? * SUN *)Add it to your crontab
- Open your crontab with
crontab -e. - Add one line:
0 0 * * 0 /full/path/to/command >> /var/log/job.log 2>&1 - Save and exit. Cron reloads automatically; confirm with
crontab -l.
Need the output silenced, a lock against overlapping runs or a system crontab user column? The generator’s full crontab line builder writes it for you. Already have a crontab? Paste it into the crontab parser to check every job.
Variations
@weekly | Macro form |
0 3 * * SUN | Sunday 03:00, a common maintenance window |
In other schedulers
| crontab line | 0 0 * * 0 /path/to/command |
| Quartz | 0 0 0 ? * SUN |
| Spring | @Scheduled(cron = "0 0 0 ? * SUN") |
| AWS EventBridge | cron(0 0 ? * SUN *) |
| GitHub Actions | - cron: '0 0 * * 0' (UTC) |
| Kubernetes | schedule: "0 0 * * 0" |
Questions
What is the cron expression for every sunday?
0 0 * * 0. At 00:00, on Sunday.
How do I write it in Quartz or Spring?
Add a seconds field and use "?" for the unused day field: 0 0 0 ? * SUN. In Spring: @Scheduled(cron = "0 0 0 ? * SUN").
What is the AWS EventBridge version?
cron(0 0 ? * SUN *). AWS uses six fields with a year at the end and needs "?" in one of the day fields.
How do I set up a cron job to run every sunday?
Run crontab -e, add the line "0 0 * * 0 /full/path/to/command >> /var/log/job.log 2>&1" and save. Use absolute paths, because cron runs with a minimal PATH. Check it with crontab -l.
Which time zone will it use?
The time zone of the machine or service running cron. GitHub Actions and Vercel use UTC; Kubernetes uses spec.timeZone if set. The preview above lets you pick a zone.