Cron Expression
0 18 * * *
Learn how to create a cron expression for 'cron every day at 6pm'. Runs daily at 18:00 with our free cron generator tool.
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | At minute 0 |
| Hour | 18 | At hour 18 |
| Day of Month | * | Any day |
| Month | * | Any month |
| Day of Week | * | Any day of the week |
This cron expression represents: cron every day at 6pm
0 18 * * *
Runs once per day at 6:00 PM server time. Cron uses a 24-hour clock, so 6pm is hour 18 — writing 0 6 * * * would give you 6 in the morning instead.
End-of-workday timing suits jobs that wrap up the day’s activity:
crontab -e
0 18 * * * /path/to/your/script.sh
The most common mistake with evening cron jobs is writing the 12-hour number: 0 6 * * * (6am) when you meant 0 18 * * * (6pm). Quick reference: add 12 to any PM hour — 1pm is 13, 6pm is 18, 11pm is 23. Midnight is 0, not 24.
0 18 * * 1-5
0 6,18 * * *
0 18 * * * /path/to/script.sh >> /var/log/cron.log 2>&1