Cron Expression: Every Sunday at Midnight
The expression is 0 0 * * 0. Paste it above to read it in English and preview the next local run times.
The expression
0 0 * * 0 runs a job every Sunday at 00:00.
Field by field
0 minute, 0 hour = midnight. The last field 0 is the weekday: in cron, 0 (and 7) both mean Sunday.
Naming the day
Most crons also accept SUN, so 0 0 * * SUN works too and reads more clearly.
Common variations
Every Sunday at 3am: 0 3 * * 0. Every weekend day: 0 0 * * 6,0.
FAQ
Is 0 the same as 7 for Sunday?
Yes. Cron accepts both 0 and 7 for Sunday; 1–6 are Monday through Saturday.
Can I write the day as a name?
Most cron implementations accept SUN, MON, etc., so 0 0 * * SUN is valid.
How do I run every Sunday at a different time?
Change the hour, e.g. 0 3 * * 0 for 3am.