Cron job every day at 2am
0 2 * * * At 02:00 AM
Typical use: nightly database backups. Try it below — change any field and see the next runs in your timezone.
At 02:00 AM
Valid
- 1Mon, Sep 28, 2026, 2:00 AM
- 2Tue, Sep 29, 2026, 2:00 AM
- 3Wed, Sep 30, 2026, 2:00 AM
- 4Thu, Oct 1, 2026, 2:00 AM
- 5Fri, Oct 2, 2026, 2:00 AM
- 6Sat, Oct 3, 2026, 2:00 AM
- 7Sun, Oct 4, 2026, 2:00 AM
- 8Mon, Oct 5, 2026, 2:00 AM
- 9Tue, Oct 6, 2026, 2:00 AM
- 10Wed, Oct 7, 2026, 2:00 AM
Field by field
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | minute 0 |
| Hour | 2 | hour 2 |
| Day of month | * | every day |
| Month | * | every month |
| Day of week | * | every day |
The same schedule on every platform
The five fields mean the same thing everywhere, but each scheduler wraps them differently — and AWS and Quartz number weekdays from 1 (Sunday), not 0.
0 2 * * * /path/to/script.sh >> /var/log/job.log 2>&1 spec:
schedule: "0 2 * * *" GitHub ActionsRuns in UTC.
on:
schedule:
- cron: '0 2 * * *' AWS EventBridgeEventBridge weekdays are 1–7 (1 = Sunday) and one day field must be ?.
cron(0 2 * * ? *) Quartz (Java)Seconds first; weekdays 1–7 with 1 = Sunday.
0 0 2 * * ? Spring @ScheduledSpring adds a seconds field but keeps Unix weekday numbers.
@Scheduled(cron = "0 0 2 * * *") [TimerTrigger("0 0 2 * * *")] Running a job every day at 2am
What is the cron expression for every day at 2am?
0 2 * * *. In plain English: at 02:00 AM. It works in standard 5-field cron — Linux crontab, Kubernetes and GitHub Actions.How do I schedule a job every day at 2am in AWS EventBridge?
Use
cron(0 2 * * ? *). EventBridge needs six fields (a year at the end), a ? in one of the day fields, and numbers weekdays 1–7 starting on Sunday.What timezone does "0 2 * * *" run in?
Cron uses the server's timezone. Kubernetes CronJobs default to the controller's timezone (set
spec.timeZone on 1.27+), GitHub Actions and AWS EventBridge rules always use UTC. Use the timezone picker above to see the next runs in your own time.