First of the Month Cron Expression
Runs at 00:00 on day 1 of every month.
Expression
0 0 1 * *Try it in the tester →Field Breakdown
0
minute
0
hour
1
day-of-month
*
month
*
day-of-week
minuteat minute 0
hourat midnight
day-of-monthat the 1st
monthevery month (1–12)
day-of-weekevery weekday (0=Sun – 6=Sat)
How It Works
Identical to `@monthly`. Fires only when the calendar day is 1, regardless of weekday.
Example Run Times
- Jan 1 00:00:00
- Feb 1 00:00:00
- Mar 1 00:00:00
- Apr 1 00:00:00
- May 1 00:00:00
Frequently Asked Questions
What if both day-of-month and day-of-week are set?
Vixie cron uses the OR rule when both are restricted — the job fires on either match. Quartz uses AND and requires one of the two to be `?`.