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
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | At 0 |
| Hour | 0 | At 0 |
| Day of Month | * | Every day of the month (1–31) |
| Month | * | Every month (1–12) |
| Day of Week | 2,4 | At 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
Next 10 Executions
Ctrl+Shift+C to copy expression