Cron Expression
0 0 1 * *
Learn how to create a cron expression for 'cron first day of month'. Runs at midnight on the 1st of every month with our free generator tool.
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | At minute 0 |
| Hour | 0 | At hour 0 |
| Day of Month | 1 | Day 1 |
| Month | * | Any month |
| Day of Week | * | Any day of the week |
This cron expression represents: cron first day of month
0 0 1 * *
Runs at midnight on the 1st day of every month — 12 runs per year. The 1 sits in the day-of-month field; every other field stays open, so the weekday the 1st happens to fall on doesn’t matter.
First-of-the-month jobs usually mark the start of a billing or reporting period:
crontab -e
0 0 1 * * /path/to/your/script.sh
If your job summarizes the previous month, midnight on the 1st can race with late-arriving data (payment settlements, timezone stragglers). Running a few hours later — 0 5 1 * * — is a cheap way to dodge most of those races.
@monthly /path/to/script.sh — identical to 0 0 1 * *
0 5 1 * *
0 0 1,15 * *