Cron Expression for the First Day of Every Month

The cron expression for the first day of the month is 0 0 1 * *. Use it for monthly billing, reports and cleanup, and learn how to handle the last day.

Part of the free Cron Expression Generator. Runs in your browser — nothing is uploaded.

Cron Expression for the First Day of Every Month

Putting 1 in the day-of-month field runs the job once per month at midnight on the 1st. It is the standard schedule for billing runs, monthly summaries and log archiving.

Worked example: Midnight on the 1st of each month

Cron expression

0 0 1 * *

In plain English

At 12:00 AM, on day 1 of the month

Practical tip

Cron has no "last day of month" field. Run on day 1 for the previous month, or run daily and check the date inside the script.

How to use this Cron Generator

  1. 1Use the live tool above — it runs entirely in your browser and never uploads your data.
  2. 2Paste the sample from the worked example, or use your own input.
  3. 3Copy the result, then adapt the same steps in your editor, script, or pipeline.

Cron Expression for the First Day of Every Month FAQs

How do I run a cron job on the last day of the month?

Standard cron cannot express it. Schedule 28–31 and check in your script, or use a scheduler with L syntax such as Quartz.

Is @monthly the same as 0 0 1 * *?

Yes. @monthly is a shortcut for 0 0 1 * *.

More Cron Generator pages

Open the full Cron Generator tool →