⏰

Cron Every Other Week

Cron for cron every other week

0
minute
0-59
6
hour
0-23
1-7,15-21
day of month
1-31
*
month
1-12 or jan-dec
1
day of week
0-6 or sun-sat
In plain English

At 06:00 on Monday on day 1, 2, 3, 4, 5, 6, 7, 15, 16, 17, 18, 19, 20 and 21 of the month — note that cron matches either day field, so this fires on whichever comes first, not only when both agree

Next runs (UTC)

  • Mon, Aug 31, 2026, 06:00 AM
  • Tue, Sep 1, 2026, 06:00 AM
  • Wed, Sep 2, 2026, 06:00 AM
  • Thu, Sep 3, 2026, 06:00 AM
  • Fri, Sep 4, 2026, 06:00 AM
  • Sat, Sep 5, 2026, 06:00 AM

Shown in your local time zone. Most schedulers — Vercel Cron, GitHub Actions and Kubernetes among them — evaluate cron in UTC, so convert before you ship.

Common schedules

0 6 1-7,15-21 * 1

At 06:00 on Monday on day 1, 2, 3, 4, 5, 6, 7, 15, 16, 17, 18, 19, 20 and 21 of the month — note that cron matches either day field, so this fires on whichever comes first, not only when both agree

Field by Field

FieldValueMatches
Minute00
Hour66
Day of month1-7,15-211, 2, 3, 4, 5, 6, 7, 15, 16, 17, 18, 19, 20, 21
Month*every month
Day of week11

Cron Has No Fortnight

Cron's fields are minute, hour, day-of-month, month and day-of-week. None of them counts weeks, so "every two weeks" cannot be written directly.

The expression above approximates it: Mondays that fall in the 1st–7th or 15th–21st of the month — the 1st and 3rd Monday. That is close to fortnightly but drifts, because months contain four or five weeks.

The Exact Version Needs a Guard

For a true 14-day cycle, run weekly and check the ISO week number:

``bash 0 6 * * 1 [ $(( $(date +%V) % 2 )) -eq 0 ] && /opt/app/biweekly.sh `

Even weeks only, which is exactly every fourteen days — with one caveat: ISO week 53 exists in some years, so the parity flips at that boundary. For payroll, anchor to a known start date instead:

`bash 0 6 * * 1 [ $(( ( $(date +%s) / 86400 - 20000 ) / 7 % 2 )) -eq 0 ] && ./run.sh `

Semi-Monthly Is Not Biweekly

Twice a month is 24 runs a year; every two weeks is 26. Payroll systems that conflate them produce two unexpected pay periods, usually noticed in December.

Time Zones

Standard crontab evaluates in system local time. Vercel Cron, GitHub Actions, Kubernetes CronJobs and AWS EventBridge all evaluate in UTC. If converting your local time crosses midnight, the day-of-week field shifts too — weekdays at 5pm in UTC-07:00 is 0 0 * * 2-6, not 0 0 * * 1-5.

The Day-Field Trap

When both the day-of-month and day-of-week fields are restricted, cron matches either, not both. 0 0 13 * 5 runs on every 13th *and* every Friday — not Friday the 13th. Leave one of them as * unless you genuinely want the union.

Other Common Schedules

ExpressionRuns
* * * * *Every minute
*/5 * * * *Every 5 minutes
*/15 * * * *Every 15 minutes
0 * * * *Every hour, on the hour
0 0 * * *Every day at midnight
0 9 * * *Every day at 9am
0 9 * * 1-5Weekdays at 9am
0 9 * * 1Every Monday at 9am

Making the Job Safe

  • Assume double firing. DST transitions, restarts and retries all cause it. Make the job
idempotent rather than assuming exactly-once.
  • Assume overlap. Cron starts the next run whether or not the last one finished. Take a
lock.
  • Avoid :00`. Every hourly job on the internet fires at the top of the hour; a random
minute spreads load on shared APIs.
  • Log the start and end. A cron job that silently stops running is invisible until
someone notices the missing output.

Frequently Asked Questions

What does `0 6 1-7,15-21 * 1` mean?

At 06:00 on Monday on day 1, 2, 3, 4, 5, 6, 7, 15, 16, 17, 18, 19, 20 and 21 of the month — note that cron matches either day field, so this fires on whichever comes first, not only when both agree. Reading the fields in order: minute, hour, day of month, month, day of week.

What time zone will this run in?

System local time under standard crontab, but UTC on Vercel, GitHub Actions, Kubernetes and AWS EventBridge. Convert before deploying — and remember that a conversion crossing midnight also shifts the day fields.

How do I test a cron expression without waiting?

Preview the next run times, as the tool above does, and run the job manually first. Never validate a schedule by waiting for it to fire in production — you learn about the mistake a day late.

Related Tools

Explore other tools you might find useful:

More Cron Expression Generator & Descriptor tools

You might also need