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

FieldValueMeaning
Minute0At 0
Hour9,17At 9, 17
Day of Month*Every day of the month (1–31)
Month*Every month (1–12)
Day of Week1-5From 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

**/5*/10*/15*/300
**/2*/3*/6*/120
*1151,15*/2
*11,4,7,101,7
*1-50,615

Next 10 Executions

1.Fri, Mar 13, 2026, 09:00 AM
2.Fri, Mar 13, 2026, 05:00 PM
3.Mon, Mar 16, 2026, 09:00 AM
4.Mon, Mar 16, 2026, 05:00 PM
5.Tue, Mar 17, 2026, 09:00 AM
6.Tue, Mar 17, 2026, 05:00 PM
7.Wed, Mar 18, 2026, 09:00 AM
8.Wed, Mar 18, 2026, 05:00 PM
9.Thu, Mar 19, 2026, 09:00 AM
10.Thu, Mar 19, 2026, 05:00 PM

Ctrl+Shift+C to copy expression

Customize this expression