CCronExplain
Get CronExplain

CronExplain · cron recipes

Cron expression for the last day of every month

The cron expression for the last day of every month is 0 0 28-31 * *.

In plain English: at 00:00 on day(s) 28,29,30,31 of month.

Standard cron has no "last day" token. The usual workaround is to run on 28–31 and let the job itself check whether tomorrow is the 1st.

Field by field

FieldValueMeans
minute00
hour00
day28-3128, 29, 30, 31
month*every month
weekday*every day of the week, weekends included

Times it fires

Server local time, on every day the schedule matches.

00:00

Check your own expression

Paste any cron line and see what it means, the next ten times it fires, and the same breakdown in your timezone.

Open CronExplain

Other schedules