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

# Cron Daily at Midnight

Run a cron job every day at midnight with 0 0 * * *. The same schedule for Quartz, AWS, GitHub Actions, Kubernetes and systemd, plus the time zone traps.

crontab expression

`0 0 * * *`

In plain English

At 00:00.

1 run a day (counted over 2026, UTC)

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

Minute 0 of hour 0, every day: the job runs once a day at 00:00, the start of the day, in whatever time zone the scheduler uses. In crontab it is the same as `@daily` (or `@midnight`).

## 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 `*` 7/7

Every day of the week

Day match AND

Runs every day.

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

## Variations

| Expression | Runs | Open in explainer |
| --- | --- | --- |
| `0 0 * * 1-5` | At 00:00 on Monday through Friday. | [Open 0 0 * * 1-5 in the explainer](https://opspane.dev/cron/explainer/?expr=0%200%20*%20*%201-5) |
| `30 0 * * *` | At 00:30. | [Open 30 0 * * * in the explainer](https://opspane.dev/cron/explainer/?expr=30%200%20*%20*%20*) |
| `0 0 * * 0` | At 00:00 on Sunday. | [Open 0 0 * * 0 in the explainer](https://opspane.dev/cron/explainer/?expr=0%200%20*%20*%200) |
| `0 0 1 * *` | At 00:00 on day 1 of the month. | [Open 0 0 1 * * in the explainer](https://opspane.dev/cron/explainer/?expr=0%200%201%20*%20*) |
| `0 12 * * *` | At 12:00. | [Open 0 12 * * * in the explainer](https://opspane.dev/cron/explainer/?expr=0%2012%20*%20*%20*) |

## Watch out for

### Midnight in which time zone?

crontab uses the server's zone (or `CRON_TZ`), GitHub Actions uses UTC unless you add a `timezone` key, a Kubernetes CronJob uses the controller's zone unless `spec.timeZone` is set, and classic EventBridge rules always use UTC. The same five fields can fire hours apart.

### A few zones skip midnight once a year

In America/Santiago, America/Havana, Asia/Beirut, Africa/Cairo and the Azores, clocks spring forward at midnight, so 00:00 does not exist on that day. crontab and Kubernetes skip the run; GitHub Actions runs it at the next valid time instead. The explainer lists the exact dates for your zone.

### Everyone else runs at 00:00 too

Shared services see a spike at the top of the hour, and hosted schedulers get busiest then. If the exact minute does not matter, pick an odd one such as `17 0 * * *`.

### `@daily` is not portable

GitHub Actions, Quartz and AWS do not accept the @-macros. Write the five fields, `0 0 * * *`, when the same expression has to work everywhere.

## FAQ

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

0 0 * * * in crontab, Kubernetes and GitHub Actions. Quartz: 0 0 0 * * ?. AWS EventBridge: cron(0 0 * * ? *). systemd: OnCalendar=daily, which means *-*-* 00:00:00.

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

Yes, in crontab and in Kubernetes CronJobs @daily and @midnight both mean 0 0 * * *. GitHub Actions does not support the macros, so use the five fields there.

### Why did my GitHub Actions job run at midnight UTC, not my time?

Scheduled workflows run in UTC by default. Add timezone with an IANA name next to cron, or convert 00:00 to UTC hours yourself.

### Does 00:00 belong to the old day or the new one?

00:00 is the first minute of the new day. A job that processes 'yesterday' should compute yesterday's date explicitly rather than use today's.
