All Cron Schedules

Cron Last Day of Month

Run a cron job on the last day of every month:

0 0 L * *

Note: The L (last) character is not supported in standard cron. It works in Quartz scheduler, Spring, and some cloud platforms. For standard crontab, run on days 28-31 and check if today is the last day.

Understanding the Expression

The cron expression 0 0 L * * breaks down as follows:

Field Value Meaning
Minute0At minute 0
Hour0At midnight (00:00)
Day of monthLLast day of the month
Month*Every month
Day of week*Every day of the week

Example Usage

Basic crontab entry

0 0 L * * /path/to/your/script.sh

With output logging

0 0 L * * /path/to/script.sh >> /var/log/script.log 2>&1

With monitoring

0 0 L * * /path/to/script.sh && curl -fsS https://cronsignal.io/ping/YOUR_CHECK_ID

Common Use Cases for Last Day of Month

  • Monthly reports: Generate end-of-month financial reports
  • Billing operations: Process invoices and subscriptions
  • Compliance tasks: Run monthly security and audit reports
  • Data archival: Archive old data to long-term storage

Monitor this schedule

Get alerted when your cron job doesn't run.

Start Monitoring Free

3 checks free. No credit card required.