Cron expression for every Sunday at midnight
At 12:00 AM, only on Sunday
0
minute
0
hour
*
day (month)
*
month
0
day (week)
At 12:00 AM, only on Sunday
Try this expression in the interactive tool:
Open in cron explainer →Next 10 scheduled runs
#1Sun, 19 Apr 2026, 00:00
#2Sun, 26 Apr 2026, 00:00
#3Sun, 3 May 2026, 00:00
#4Sun, 10 May 2026, 00:00
#5Sun, 17 May 2026, 00:00
#6Sun, 24 May 2026, 00:00
#7Sun, 31 May 2026, 00:00
#8Sun, 7 Jun 2026, 00:00
#9Sun, 14 Jun 2026, 00:00
#10Sun, 21 Jun 2026, 00:00
Common use cases
Sunday at midnight is the traditional time for weekly maintenance tasks that need the lowest possible system load. Full weekly backups, database vacuuming, log archival, and storage cleanup all commonly run at this time.
It's also used for weekly data preparation — pre-computing the coming week's reports, refreshing lookup tables, and syncing reference data from upstream sources so everything is fresh for Monday.
Platform-specific syntax
crontab
0 0 * * 0 /path/to/script.shAWS EventBridge
cron(0 0 ? * SUN *)GitHub Actions
schedule:
- cron: '0 0 * * 0'Kubernetes
schedule: "0 0 * * 0"Technical breakdown
The expression 0 0 * * 0 has five fields: minute=0, hour=0, day (month)=*, month=*, day (week)=0. At 12:00 AM, only on Sunday.
Frequently asked questions
Can I use 7 instead of 0 for Sunday?
In most cron implementations, both 0 and 7 represent Sunday. However, for maximum portability, use 0 — it works everywhere.