Cron Every Weekday

The 1-5 range in the day-of-week field means Monday through Friday. With 0 0 in the minute and hour fields, the job runs at midnight on every weekday and skips weekends.

Cron Expression
0 0 * * 1-5

Field Breakdown

FieldValueMeaning
Minute0At minute 0
Hour0At midnight (00:00)
Day of Month*Every day of the month
Month*Every month (1-12)
Day of Week1-5Monday through Friday

Variations

0 0 * * 1-5Every weekday at midnight
0 9 * * 1-5Every weekday at 9 AM (business hours start)
*/30 9-17 * * 1-5Every 30 minutes during business hours, weekdays only

Common Use Cases

  • Business-hours jobs that should skip weekends
  • Daily standup or reminder notifications
  • Workday-only data syncs and report generation

Tips & Best Practices

Use the range 1-5 for Monday-Friday; names also work: MON-FRI.

Combine with an hour range (e.g. 9-17) for business-hours-only schedules.

If both day-of-month and day-of-week are restricted, cron runs when EITHER matches — keep day-of-month as * here.

Related Intervals