Last Day of the Month: Quartz expression
0 0 23 L * ?“At 23:00, on the last day of the month.”
| Field | Value | Meaning |
|---|---|---|
| Second | 0 | :00 |
| Minute | 0 | :00 |
| Hour | 23 | 11 PM |
| Day of month | L | last day |
| Month | * | every month |
| Day of week | ? | any (?) |
Last Day of the Month in every cron format
| Scheduler | Expression |
|---|---|
| Unix / Linux cron crontab, cronie, Vixie cron, Kubernetes CronJob, GitHub Actions | Not supported — Unix cron cannot express “last day of the month”. |
| Quartz Quartz Scheduler (Java) | 0 0 23 L * ? |
| Spring @Scheduled Spring Framework CronExpression and @Scheduled | 0 0 23 L * * |
| AWS EventBridge EventBridge rules and Scheduler cron() | cron(0 23 L * ? *) |
Next run times (UTC)
- Thu, Dec 31, 2026
23:00 - Sun, Jan 31, 2027
23:00 - Sun, Feb 28, 2027
23:00 - Wed, Mar 31, 2027
23:00 - Fri, Apr 30, 2027
23:00
Calculated when this page was generated. Use the tester above for live times in your own time zone.
Tip
Unix cron has no L. Run the job at 0 23 28-31 * * and exit unless tomorrow is the 1st: [ "$(date -d tomorrow +\%d)" = "01" ] && command.
Copy-ready examples
// At 23:00, on the last day of the month
@Scheduled(cron = "0 0 23 L * *", zone = "UTC")
public void runJob() {
// ...
}
// Or externalise it in application.yml:
// app.jobs.my-job.cron: "0 0 23 L * *"
// @Scheduled(cron = "${app.jobs.my-job.cron}", zone = "UTC")Common questions
What is the cron expression for last day of the month?
At 23:00, on the last day of the month. Standard Unix cron cannot express this schedule (Unix cron cannot express “last day of the month”), so use the Quartz expression 0 0 23 L * ?, the Spring expression 0 0 23 L * * or the AWS EventBridge expression cron(0 23 L * ? *).
How do I run a Spring @Scheduled job last day of the month?
Use @Scheduled(cron = "0 0 23 L * *"). Spring cron has six fields, starting with seconds. Add zone = "Europe/London" (or any IANA zone) to run it in a specific time zone instead of the server's.
What is the Quartz cron expression for last day of the month?
0 0 23 L * ?. Quartz adds a seconds field at the start and requires ? in either the day-of-month or day-of-week field.
How do I write last day of the month for AWS EventBridge?
Use cron(0 23 L * ? *). EventBridge cron has six fields including a year, and one of the two day fields must be ?. Classic EventBridge rules run in UTC; EventBridge Scheduler accepts a time zone.
Which time zone does this cron schedule use?
Cron runs in the time zone of the scheduler: the server's local zone for crontab, UTC for GitHub Actions and EventBridge rules, or the zone you set with CRON_TZ, Kubernetes timeZone, Spring zone or Quartz inTimeZone. Choose a zone in the tester above to see local run times.
More cron schedules
Similar: Every Month (0 0 1 * *) · Last Friday of the Month (0 0 17 ? * 6L) · First Monday of the Month (0 0 9 ? * 2#1)