Cron Expression for Every Year on July 4
0 0 4 7 *→Runs at midnight on July 4 each year0
Minute
0–59
0
Hour
0–23
4
Day
1–31
7
Month
1–12
*
Weekday
0–7
Quick Examples
How It Works
The expression
0 0 4 7 * sets day-of-month to 4 and month to 7 (July).Common Use Cases
- 1Annual reminders tied to a fixed calendar date
- 2Seasonal promotions
Linux Crontab Example
0 0 4 7 * /app/holiday-task.shAdd this line to your crontab with crontab -e
Need a custom schedule?
Build your own cron expression visually with our generator.