Cron Every Tuesday

Run a cron job every Tuesday at midnight using 0 0 * * 2. Detailed field explanation, weekly scheduling guidance, and practical use case examples.

Cron Expression

0 0 * * 2

Field Breakdown

FieldValueMeaning
Minute0At 0
Hour0At 0
Day of Month*Every day of the month (1–31)
Month*Every month (1–12)
Day of Week2At Tuesday

Detailed Explanation

The cron expression 0 0 * * 2 schedules a task to run once per week, every Tuesday at midnight.

Field-by-field breakdown:

  • 0 (Minute): At minute 0. The task fires at the start of the hour.
  • 0 (Hour): At hour 0 (midnight). The task runs at the beginning of Tuesday.
  • * (Day of Month): Every day from 1 through 31. No restriction on the day of the month.
  • * (Month): Every month from January through December. No restriction on the month.
  • 2 (Day of Week): Tuesday only. In standard cron, 2 represents Tuesday.

This means your task will execute once per week at the very start of Tuesday. Tuesday is often chosen for weekly jobs because it avoids Monday's typical rush of beginning-of-week processes and provides a full business day of data from Monday to process. This timing is popular for mid-early-week maintenance windows and automated software update checks. Consider adjusting the hour if midnight does not suit your needs. This expression is supported by standard cron on Linux/macOS, as well as cloud services like AWS CloudWatch, Google Cloud Scheduler, and GitHub Actions.

Use Case

Commonly used for running weekly dependency update checks and creating automated pull requests for outdated packages every Tuesday.

Try It — Interactive Builder

Every Tuesday at 12:00 AM

**/5*/10*/15*/300
**/2*/3*/6*/120
*1151,15*/2
*11,4,7,101,7
*1-50,615

Next 10 Executions

1.Tue, Mar 17, 2026, 12:00 AM
2.Tue, Mar 24, 2026, 12:00 AM
3.Tue, Mar 31, 2026, 12:00 AM
4.Tue, Apr 7, 2026, 12:00 AM
5.Tue, Apr 14, 2026, 12:00 AM
6.Tue, Apr 21, 2026, 12:00 AM
7.Tue, Apr 28, 2026, 12:00 AM
8.Tue, May 5, 2026, 12:00 AM
9.Tue, May 12, 2026, 12:00 AM
10.Tue, May 19, 2026, 12:00 AM

Ctrl+Shift+C to copy expression

Customize this expression