Cron expression for the last day of the month

The cron expression for the last day of the month is 0 0 28-31 * *. Standard cron has no 'last day' token. This fires on the 28th through 31st, so your script must check whether today is actually the final day before doing any work.

0minute
0hour
28-31day
*month
*weekday

In Plain English

What your cron expression actually means.

At 12:00 AM, between day 28 and 31 of the month

Upcoming Executions

Preview the next 50 times this schedule will trigger.

Calculating…

About 0 0 28-31 * *

0 0 28-31 * * — Standard cron has no 'last day' token. This fires on the 28th through 31st, so your script must check whether today is actually the final day before doing any work.

Cron reads the five fields as minute hour day month weekday. For this schedule that breaks down as:

  • 0 minute
  • 0 hour
  • 28-31 day of month
  • * month (every value)
  • * day of week (every value)

Monthly & yearly schedules

Build a custom cron expression →