> Markdown version of https://opspane.dev/cron/schedules/every-sunday-at-midnight/ for AI agents and readers: the same text, without navigation or the interactive tool.

# Cron Every Sunday at Midnight

0 0 * * 0 runs a cron job weekly at 00:00 on Sunday. Get it for Quartz, AWS, GitHub Actions, Kubernetes and systemd, and avoid the Sunday traps.

crontab expression

`0 0 * * 0`

In plain English

At 00:00 on Sunday.

52 runs a year (counted over 2026, UTC)

[See its next runs in your time zone](https://opspane.dev/cron/explainer/?expr=0%200%20*%20*%200) [Convert it to another platform](https://opspane.dev/cron/translate/?expr=0%200%20*%20*%200&amp;d=unix)

`0 0` is 00:00 and `0` in the day-of-week field is Sunday, so the job runs once a week as Saturday turns into Sunday. crontab's `@weekly` is the same schedule. Midnight on Sunday is the start of Sunday, not the end of it.

## Field by field

Minute `0` 1/60

:00

Hour `0` 1/24

00:00

Day of month `*` 31/31

Every day of the month

Month `*` 12/12

Every month

Day of week `0` 1/7

Sunday

Day match AND

Day of week decides; day of month is *.

## The same schedule on every platform

Each expression below is the same schedule written for that platform, checked run by run against the crontab version.

| Platform | Expression | Open in tool |
| --- | --- | --- |
| crontab | `0 0 * * 0` | [Open in the crontab tool](https://opspane.dev/cron/explainer/?expr=0%200%20*%20*%200) |
| Quartz | `0 0 0 ? * SUN` | [Open in the Quartz tool](https://opspane.dev/cron/quartz/?expr=0%200%200%20%3F%20*%20SUN) |
| AWS EventBridge | `cron(0 0 ? * SUN *)` | [Open in the AWS EventBridge tool](https://opspane.dev/cron/aws-eventbridge/?expr=cron(0%200%20%3F%20*%20SUN%20*)) |
| GitHub Actions | `0 0 * * 0` | [Open in the GitHub Actions tool](https://opspane.dev/cron/github-actions/?expr=0%200%20*%20*%200) |
| Kubernetes | `0 0 * * 0` | [Open in the Kubernetes tool](https://opspane.dev/cron/kubernetes/?expr=0%200%20*%20*%200) |
| systemd | `Sun *-*-* 00:00:00` | [Open in the systemd tool](https://opspane.dev/cron/systemd/?expr=Sun%20*-*-*%2000%3A00%3A00) |

## Variations

| Expression | Runs | Open in explainer |
| --- | --- | --- |
| `0 0 * * SUN` | At 00:00 on Sunday. | [Open 0 0 * * SUN in the explainer](https://opspane.dev/cron/explainer/?expr=0%200%20*%20*%20SUN) |
| `0 0 * * 7` | At 00:00 on Sunday. | [Open 0 0 * * 7 in the explainer](https://opspane.dev/cron/explainer/?expr=0%200%20*%20*%207) |
| `0 3 * * 0` | At 03:00 on Sunday. | [Open 0 3 * * 0 in the explainer](https://opspane.dev/cron/explainer/?expr=0%203%20*%20*%200) |
| `0 0 * * 6` | At 00:00 on Saturday. | [Open 0 0 * * 6 in the explainer](https://opspane.dev/cron/explainer/?expr=0%200%20*%20*%206) |
| `0 0 * * 1` | At 00:00 on Monday. | [Open 0 0 * * 1 in the explainer](https://opspane.dev/cron/explainer/?expr=0%200%20*%20*%201) |

## Watch out for

### Sunday is 0 in crontab but 1 in Quartz and AWS

Quartz and AWS EventBridge number the days from 1 = Sunday, so the same schedule is `0 0 0 ? * SUN` or `cron(0 0 ? * SUN *)`. Writing `SUN` avoids the mix-up everywhere.

### `7` is not Sunday everywhere

crontab accepts both `0` and `7` for Sunday, but Kubernetes rejects `7` and GitHub Actions documents only `0` to `6`. Use `0` or `SUN`.

### The end of Sunday is Monday at 00:00

If the job should run after the whole weekend, `0 0 * * 1` (00:00 Monday) is usually what people mean by the end of Sunday.

## FAQ

### What is the cron expression for every Sunday at midnight?

0 0 * * 0. It runs at 00:00 every Sunday, once a week.

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

Yes, in crontab @weekly means 00:00 on Sunday. GitHub Actions, AWS EventBridge and Quartz do not accept @weekly, so write the fields out there.

### Should I use 0 or 7 for Sunday?

Use 0 or SUN. crontab accepts 7 too, but Kubernetes does not.

### How do I run every Sunday at 3 AM?

Use 0 3 * * 0. The minute is 0, the hour is 3 and day of week 0 is Sunday.
