Cron Expression for Weekdays During Business Hours
Schedule a cron job every 30 minutes from 9 AM to 5 PM, Monday to Friday, with */30 9-17 * * 1-5. See how ranges and steps combine.
Part of the free Cron Expression Generator. Runs in your browser — nothing is uploaded.
Cron Expression for Weekdays During Business Hours
Ranges and steps can be combined: 9-17 limits the hours and 1-5 limits the days. This is the usual pattern for monitoring, sync and notification jobs that should stay quiet at night and on weekends.
Worked example: Every 30 minutes, 9 to 17, Monday to Friday
Cron expression
*/30 9-17 * * 1-5
In plain English
Every 30 minutes, between 09:00 AM and 05:59 PM, Monday through Friday
Practical tip
The hour range 9-17 includes 17:00, so the last run is at 17:30 with this expression. Use 9-16 if you want to stop before 5 PM.
How to use this Cron Generator
- 1Use the live tool above — it runs entirely in your browser and never uploads your data.
- 2Paste the sample from the worked example, or use your own input.
- 3Copy the result, then adapt the same steps in your editor, script, or pipeline.
Cron Expression for Weekdays During Business Hours FAQs
How do I exclude weekends in cron?
Use 1-5 in the day-of-week field to run Monday to Friday only.
Does 9-17 include 5 PM?
Yes, ranges are inclusive. Runs happen throughout the 17:00 hour, up to 17:59 depending on the minute field.
More Cron Generator pages
- Cron Expression for Every 5 MinutesThe cron expression for every 5 minutes is */5 * * * *. See what it means, test variations and copy it into crontab, Kubernetes or GitHub Actions.
- Cron Expression to Run Every HourThe cron expression to run every hour is 0 * * * *. Learn what it means, how it differs from @hourly and how to change the minute.
- Cron Expression for Daily at MidnightThe cron expression for every day at midnight is 0 0 * * *. See what it means, how timezones affect it and how to schedule other daily times.
- Cron Expression for Every Monday at 9 AMThe cron expression for every Monday at 9 AM is 0 9 * * 1. Understand the day-of-week field and adapt it for other weekdays and times.
- Cron Expression for the First Day of Every MonthThe cron expression for the first day of the month is 0 0 1 * *. Use it for monthly billing, reports and cleanup, and learn how to handle the last day.
- GitHub Actions Cron ScheduleWrite a GitHub Actions schedule trigger with cron syntax. Build and verify expressions for daily and hourly workflows. Remember: GitHub runs them in UTC.
- Kubernetes CronJob Schedule SyntaxWrite the schedule field of a Kubernetes CronJob. Build and verify a cron expression such as a weekly backup, then paste it into your manifest.
- Cron Expression for Every 30 MinutesThe cron expression for every 30 minutes is */30 * * * *, or 0,30 * * * * for the same result. Compare both forms and test your own schedule.
- Cron Expression for Every QuarterSchedule a cron job once a quarter with 0 0 1 1,4,7,10 *. See how month lists work and when quarterly reports will run.