Monthly

Last Day of Month Cron Note

Learn why standard Linux cron does not directly support a last-day-of-month shortcut.

Cron expression

0 0 28-31 * *

Plain English explanation

Runs at midnight on days 28 through 31 of every month; add script logic to detect the true last day.

Linux 5-field cron does not have a portable L character for last day. Quartz cron may support L, but Linux crontab generally does not.

Field breakdown

Minute

0

At minute 0

0-59

Hour

0

At 12 AM

0-23

Day of Month

28-31

From 28 through 31

1-31

Month

*

Every month

1-12

Day of Week

*

Every day of the week

0-7, where 0 or 7 is Sunday

Use case

Use this pattern with application-side checks when you need last-day-of-month behavior in Linux cron.

FAQ

What does this cron expression mean?

Runs at midnight on days 28 through 31 of every month; add script logic to detect the true last day.

Can I use this in Linux crontab?

Yes. This is a standard Linux 5-field cron expression when used with a normal crontab command.

Does this work in GitHub Actions?

Usually yes for 5-field syntax, but GitHub Actions schedules run in UTC and may be delayed during high load.

How can I change the time?

Edit the minute and hour fields, or open the expression in the Cron Generator or Playground.

How can I test this expression?

Use the Cron Validator to check syntax and the Next Run Calculator to preview upcoming executions.