Cron Every Tuesday and Thursday

Run a cron job every Tuesday and Thursday at midnight using 0 0 * * 2,4. Detailed field breakdown and bi-weekly scheduling guidance included.

Cron Expression

0 0 * * 2,4

Field Breakdown

FieldValueMeaning
Minute0At 0
Hour0At 0
Day of Month*Every day of the month (1–31)
Month*Every month (1–12)
Day of Week2,4At Tuesday, Thursday

Detailed Explanation

The cron expression 0 0 * * 2,4 schedules a task to run twice per week, on Tuesday and Thursday 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 each specified day.
  • * (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,4 (Day of Week): Tuesday (2) and Thursday (4). The comma-separated list selects these two specific days.

This means your task will execute 2 times per week on Tuesday and Thursday. This schedule provides a balanced mid-week cadence and pairs well with a Monday-Wednesday-Friday schedule for complementary tasks. The two-day gap between runs ensures regular processing without daily overhead. This pattern is commonly used for bi-weekly reporting, periodic data validation, and scheduled maintenance windows. 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

Useful for running bi-weekly automated integration tests against staging environments to catch regressions between release cycles.

Try It — Interactive Builder

Every Tuesday, Thursday 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.Thu, Mar 19, 2026, 12:00 AM
3.Tue, Mar 24, 2026, 12:00 AM
4.Thu, Mar 26, 2026, 12:00 AM
5.Tue, Mar 31, 2026, 12:00 AM
6.Thu, Apr 2, 2026, 12:00 AM
7.Tue, Apr 7, 2026, 12:00 AM
8.Thu, Apr 9, 2026, 12:00 AM
9.Tue, Apr 14, 2026, 12:00 AM
10.Thu, Apr 16, 2026, 12:00 AM

Ctrl+Shift+C to copy expression

Customize this expression