Cron Weekdays at 9 AM and 5 PM
Schedule a cron job at 9 AM and 5 PM on weekdays using 0 9,17 * * 1-5. Complete field breakdown for start-and-end-of-business-day scheduling.
Cron Expression
0 9,17 * * 1-5
Field Breakdown
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | At 0 |
| Hour | 9,17 | At 9, 17 |
| 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 9,17 * * 1-5 schedules a task to run twice per weekday, at 9:00 AM and 5:00 PM, Monday through Friday.
Field-by-field breakdown:
0(Minute): At minute 0. The task fires at the top of each qualifying hour.9,17(Hour): At hours 9 (9 AM) and 17 (5 PM). The list notation specifies two trigger times: the start and end of a typical business day.*(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 which month.1-5(Day of Week): Monday through Friday. The range covers all five business days.
This means your task will execute 10 times per week: twice per day on each of the five weekdays. The 9 AM run captures the start of the business day, while the 5 PM run captures the end. This bookend pattern is powerful for tasks that need to prepare the work environment in the morning and summarize or archive activity in the evening. Examples include opening and closing daily task queues, refreshing and archiving dashboards, or enabling and disabling business-hours configurations. 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
Ideal for toggling customer support chat availability: enabling the live chat widget at 9 AM and switching to an offline contact form at 5 PM on weekdays.
Try It — Interactive Builder
at min 0, at hour 9,17, on DOW 1-5
Next 10 Executions
Ctrl+Shift+C to copy expression