Skip to content
Unix cron100% Client-Side

Cron Expression for On the 1st and 15th of Every Month

0 0 1,15 * *At 12:00 AM, on day 1 and 15 of the month

The Unix cron expression "0 0 1,15 * *" runs a task on the 1st and 15th of every month. Preview the next run times in your timezone, read the plain-English translation, and copy ready-to-paste snippets for crontab, Node.js, GitHub Actions, and AWS EventBridge.

Live playground

  • Min0
  • Hour0
  • DOM1,15
  • Month*
  • DOW*

At 12:00 AM, on day 1 and 15 of the month

Unix cron · evaluated in UTC

24-hour view

Hover a highlighted hour for precise timestamps. Showing the next 50 executions.

Upcoming runs

Timezone

Runs are simulated in the selected IANA timezone. Auto-detected from your browser on first load.

Field breakdown

How each field of 0 0 1,15 * * is interpreted in the Unix cron format.

Field breakdown of 0 0 1,15 * *
FieldValueAllowedStatus
Minute00-59Valid
Hour00-23Valid
Day of Month1,151-31Valid
Month*1-12 or JAN-DECValid
Day of Week*0-7 or SUN-SAT (0 and 7 = SUN)Valid

Use “0 0 1,15 * *” in real code

Copy-paste configurations for the most common schedulers, converted to each platform’s dialect where needed.

import cron from 'node-cron';

cron.schedule('0 0 1,15 * *', () => {
  console.log('Running task...');
});

Running “0 0 1,15 * *” in production

Semi-monthly machinery: the day list and its uneven calendar

0 0 1,15 * * fires at midnight on the 1st and the 15th of every month — 24 fires a year — and the comma list in the day-of-month field is the entire mechanism: 1,15 enumerates two dates the same way the hour field's lists do. This is the semi-monthly cadence that payroll, billing, and quota systems standardized on: salary runs and contractor invoices on the 1st/15th cycle, mid-month quota resets, semi-monthly report snapshots with a stable 'as of' boundary, subscription renewals split across the month, and the financial-close checkpoints that fall between the monthly books.

The cadence's defining quirk is its unevenness — and unlike the thrice-daily recipe's fixable asymmetry, this one is irreducible because the calendar itself is irregular. The 1st→15th gap is always fourteen days; the 15th→1st gap is sixteen days after a 31-day month, fifteen after a 30-day month, and thirteen or fourteen after February. Anything consuming the schedule must therefore anchor on the calendar dates, never on 'days since last run': a billing engine that assumes a uniform period double-bills February's customers or under-bills March's, and a retention job that prunes '15 days back' reads a different window each half-month. Store the period boundaries (1st–14th, 15th–end) as data, and the unevenness becomes a lookup rather than a bug.

Semi-monthly versus biweekly: the conflation that breaks payroll

The most expensive confusion in this space is reading 'twice a month' as 'every two weeks.' They are different cadences that diverge visibly within a quarter: 1st/15th is calendar-anchored — always the same two dates, 24 fires a year, periods of 14-17 days; biweekly is interval-anchored — every fourteen days, 26 fires a year, drifting across month boundaries and occasionally landing twice in one calendar month. Payroll systems care intensely: semi-monthly employees get 24 paychecks computed on calendar halves; biweekly employees get 26 and two months a year contain three paydays. Cron expresses the former with this recipe; the latter is impossible in five fields (there is no week-parity concept) and belongs to job-side state or a real scheduler.

Implementation notes are short because day lists are universal: EventBridge cron(0 0 1,15 * ? *), Quartz 0 0 0 1,15 * ? with seconds leading, Celery crontab(day_of_month='1,15'), systemd OnCalendar=*-*-01,15 00:00:00. Two refinements cover the rest: pair the date list with an hour that fits the audience (0 6 1,15 for reports landing at a civil 6 AM rather than midnight), and add the weekday guard when the recipient is a business process — 'the 1st' lands on weekends a third of the time, and teams that care move the action to the first business day in code (check the date, roll forward), keeping the cron line on the true calendar dates.

Frequently asked questions

What does the cron expression "0 0 1,15 * *" mean?

"0 0 1,15 * *" is a Unix cron expression that means: At 12:00 AM, on day 1 and 15 of the month. It contains 5 fields — Minute (0), Hour (0), Day of Month (1,15), Month (*), Day of Week (*) — and works in any scheduler that accepts the Unix cron format.

How does "0 0 1,15 * *" behave in UTC versus local time?

The classic cron daemon interprets every field in the machine's local timezone (from /etc/timezone or the TZ environment variable). If the server runs in UTC the schedule fires in UTC; otherwise shift the hours accordingly. Modern cronie also supports CRON_TZ to pin a single job to UTC.

Can I combine "0 0 1,15 * *" with holidays or blackout dates?

Standard cron has no holiday awareness. The common pattern is to keep the schedule as-is and guard the job: check a holiday calendar when the run starts and exit early on excluded days. That keeps the schedule declarative while your code owns the policy.

What is the interval between the 1st and the 15th runs?

Fourteen days from the 1st to the 15th, then fifteen to seventeen days from the 15th to the next 1st, depending on the month's length — sixteen after a 31-day month, fifteen after 30 days, and thirteen or fourteen out of February. The cadence is calendar-anchored, not interval-anchored: consume it by date (1st–14th, 15th–end), never by 'days since the last fire'.

Is 'on the 1st and 15th' the same as biweekly?

No — this schedule fires 24 times a year on fixed calendar dates; biweekly fires 26 times a year every fourteen days and drifts across month boundaries (two months a year contain three biweekly fires). Five-field cron cannot express biweekly at all — no week-parity concept — so true biweekly schedules need job-side state (a last-run timestamp and a 14-day check) or a scheduler with interval triggers. Payroll is the domain where confusing the two has legal consequences.

About the “0 0 1,15 * *” schedule

0 0 1,15 * * is the Unix cron way to say “At 12:00 AM, on day 1 and 15 of the month”. The simulator above evaluates it entirely in your browser — the timeline, the next-run table, and the timezone switcher all run client-side, so you can paste production schedules without them ever leaving your machine.

Every page in this directory follows the same structure: a plain-English translation, a per-field breakdown, platform-specific snippets, and a timezone-aware simulator. Move between the related intervals below to compare dialects, and validate one final time in the simulator with your own timezone before shipping.

Adjacent intervals and the same schedules expressed for other platforms.