Skip to content
AWS EventBridge100% Client-Side

Cron Expression for Last Day of Month (AWS EventBridge)

0 0 L * ? *At 12:00 AM, on the last day of the month

The AWS EventBridge cron expression "0 0 L * ? *" runs a task last day of month (aws eventbridge). In an EventBridge rule you write it as cron(0 0 L * ? *). 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
  • DOML
  • Month*
  • DOW?
  • Year*

At 12:00 AM, on the last day of the month

AWS EventBridge · 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 L * ? * is interpreted in the AWS EventBridge format.

Field breakdown of 0 0 L * ? *
FieldValueAllowedStatus
Minute00-59Valid
Hour00-23Valid
Day of MonthL1-31, L (last day), W (nearest weekday)Valid
Month*1-12 or JAN-DECValid
Day of Week?1-7 or SUN-SAT (1 = SUN)Valid
Year*1970-2199Valid

Use “0 0 L * ? *” 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 0 L * *', () => {
  console.log('Running task...');
});

Running “0 0 L * ? *” in production

The L modifier: EventBridge's native last-day support

cron(0 0 L * ? *) fires at 00:00 UTC on the final day of every month — January 31st, April 30th, February 28th (29th in leap years) — with no guard logic and no candidate nights. The L in the day-of-month field is the entire mechanism: 'last day of month', evaluated by the scheduler against the real calendar. This is the expression the Unix guard pattern (59 23 28-31 with a tomorrow-is-the-1st check) exists to approximate, and AWS validating L at rule-creation time means a typo fails loudly instead of silently skipping months — a meaningful upgrade over a guard job whose date logic broke six months ago.

The timing choice deserves a decision, because 00:00 UTC on the last day is midnight at the START of that day, not its end: a month-end billing close scheduled as cron(0 0 L * ? *) fires on the last day's midnight with the month's final day still ahead of it. If the job must run after the final day's activity, the honest expressions are cron(59 23 L * ? *) (23:59 on the last day) or cron(0 0 1 * ? *) — midnight on the 1st of the next month, closing the just-ended month as its first act. Teams porting from Unix guard jobs (which conventionally fire 23:59) most often want the second form; the L recipes in other dialects carry the same caveat.

L and friends: the modifier family EventBridge supports

L is the best-known of EventBridge's day-field modifiers but not the only one: W in day-of-month selects the nearest weekday to a given day (15W — the weekday nearest the 15th, used for business-day scheduling), L in combination with a day-of-month number (L-1 — the second-to-last day, for pre-close staging runs), and L in the day-of-week position means Saturday (7L-style constructions select the last named weekday of the month in Quartz-family dialects). EventBridge supports the core set — L, W, L-n in dom — while omitting Quartz's # nth-weekday operator; 'third Friday' in AWS therefore needs a Step Functions calendar check or a job-side guard, the same pattern five-field cron users know.

Operational notes for the AWS-specific wrapper: the rule fires at 00:00 UTC sharp, so downstream consumers in other zones should key on the rule's own timestamps rather than local midnight assumptions; a Lambda target gets one invocation with the rule's retry policy applying on failure (dead-letter queue for the exhausted case — month-end jobs with no natural retry window until next month deserve a DLQ and a pager); and Step Functions is the better target for month-end closes with multiple ordered steps, since a failed middle step in a Lambda chain has no built-in resume. The five-field simulator above does not parse L — it is dialect grammar — but the monthly next-run list it shows for a fixed-day expression illustrates the calendar positions L generalizes over.

Frequently asked questions

What does the cron expression "0 0 L * ? *" mean?

"0 0 L * ? *" is an AWS EventBridge expression that means: At 12:00 AM, on the last day of the month. It contains 6 fields — Minute (0), Hour (0), Day of Month (L), Month (*), Day of Week (?), Year (*) — and works in any scheduler that accepts the AWS EventBridge format.

How does "0 0 L * ? *" behave in UTC versus local time?

AWS EventBridge evaluates cron expressions in UTC only — there is no per-rule timezone setting. Convert your target local time, including daylight saving adjustments, to UTC when authoring the expression.

Is "0 0 L * ? *" valid outside AWS EventBridge?

Not directly. Standard Unix cron expects 5 fields without '?', Quartz expects a leading seconds field, AWS EventBridge appends a year and requires '?' in one of the two day fields, and Salesforce System.schedule needs a leading seconds field with 1-based weekdays and an optional trailing year. The conversion snippets below show the equivalent expression for each platform.

What does L mean in an EventBridge cron expression?

'Last' — in the day-of-month field, L stands for the final day of the month as evaluated against the real calendar: 31 in January, 30 in April, 28 or 29 in February. cron(0 0 L * ? *) fires at 00:00 UTC on each month's last day, with AWS validating the modifier at rule creation. Related modifiers extend the idea: L-3 is three days before month-end, 15W is the weekday nearest the 15th, and the guard-pattern arithmetic these replace disappears entirely.

How is EventBridge's L different from the Unix 28-31 guard pattern?

Ownership of the calendar: L is evaluated by AWS against the real month (with rule-level validation catching errors), while the guard pattern fires on four candidate nights and a line of job code decides. The guard's cost is deliberate silent no-ops three or four nights a month that monitoring must whitelist; L's cost is dialect lock-in — portable only across Quartz-family schedulers. EventBridge has L, so use it there; keep the guard for plain five-field crontabs where L does not exist.

About the “0 0 L * ? *” schedule

0 0 L * ? * is the AWS EventBridge way to say “At 12:00 AM, on the last day 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.