Cron Every Weekday at 6 PM
Run a cron job every weekday at 6 PM with 0 18 * * 1-5. Complete field explanation, end-of-day automation examples, and best practices guide.
Cron Expression
0 18 * * 1-5
Field Breakdown
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | At 0 |
| Hour | 18 | At 18 |
| Day of Month | * | Every day of the month (1–31) |
| Month | * | Every month (1–12) |
| Day of Week | 1-5 | From Monday to Friday |
Detailed Explanation
The cron expression 0 18 * * 1-5 schedules a task to run every weekday (Monday through Friday) at 6:00 PM.
Field-by-field breakdown:
0(Minute): At minute 0. The task fires at the start of the hour.18(Hour): At hour 18 (6 PM). The task runs at the end of business hours.*(Day of Month): Every day from 1 through 31. No restriction on the day of the month.*(Month): Every month from January through December. No restriction on the month.1-5(Day of Week): Monday through Friday. The range covers all five business days.
This means your task will execute 5 times per week, once at 6:00 PM on each business day. This schedule targets the close of the business day, making it ideal for end-of-day processing, daily summaries, and cleanup tasks. Running at 6 PM rather than 5 PM provides a buffer to ensure that all end-of-day activities and data entries are captured. Weekend days are excluded to avoid unnecessary processing. This expression is supported by standard cron on Linux/macOS, as well as cloud services like AWS CloudWatch, Google Cloud Scheduler, and GitHub Actions.
Use Case
Useful for triggering end-of-day data exports from your CRM to a data warehouse, capturing the full day's customer interactions.
Try It — Interactive Builder
Every weekday at 6:00 PM
Next 10 Executions
Ctrl+Shift+C to copy expression