# Run a Cron Job Every Sunday

> The cron expression for every Sunday at midnight is 0 0 * * 0. The standard weekly schedule — field breakdown, next runs, and variations.

```
0 0 * * 0
```

In plain English: At 00:00 (midnight), on Sunday.

0 0 * * 0 fires once a week at Sunday midnight — the schedule behind the @weekly alias. Sunday-night runs are popular for weekly rollups and maintenance because they finish before Monday traffic arrives.

## Field by field

| Field | Value | Meaning |
|---|---|---|
| Minute | `0` | 0 |
| Hour | `0` | 0 |
| Day of month | `*` | every day |
| Month | `*` | every month |
| Day of week | `0` | Sunday |

## Variations

- `0 0 * * SUN` — same schedule with the day name
- `0 4 * * 0` — Sundays at 04:00 — after Saturday-night batch jobs settle
- `0 0 * * 7` — identical — cron accepts 7 for Sunday too

## FAQ

### Is 0 0 * * 0 the same as @weekly?

Yes — @weekly is an alias for exactly this expression in cron implementations that support @ shortcuts.

### Why do both 0 and 7 mean Sunday?

Historical compatibility: System V cron used 0-6, other variants used 1-7. Modern cron accepts both, so 0 and 7 in the day-of-week field are interchangeable Sundays.

## Related schedules

- [0 9 * * 1 — Run a Cron Job Every Monday](https://www.devkult.com/cron/every-monday.md)
- [0 9 * * 1-5 — Run a Cron Job Every Weekday](https://www.devkult.com/cron/every-weekday.md)
- [0 0 1 * * — Run a Cron Job on the First of Every Month](https://www.devkult.com/cron/first-of-month.md)

Open the interactive page: https://www.devkult.com/cron/every-sunday