Cron Expression for Every Weekday

The cron expression 0 0 * * 1-5 runs every weekday (Monday to Friday) at midnight. Perfect for business day processing, weekday reports, and workday automation.

Cron Expression

Format: minute hour day month weekday (e.g., "*/5 * * * *" for every 5 minutes)

About This Schedule

Expression: 0 0 * * 1-5

Frequency: Every weekday at midnight (Monday to Friday)

Common Uses:

  • Business day maintenance
  • Daily reports during work week
  • Regular cleanup tasks
  • Data processing

Note: Ideal for business-critical tasks that should only run on workdays.

Results

Enter a cron expression to see the results here.

Frequently Asked Questions

Does this skip weekends automatically?

Yes! The expression '1-5' means Monday through Friday only. Saturday (6) and Sunday (0 or 7) are excluded, so your task only runs on business days.

How do I run it during business hours instead of midnight?

Change the hour field. For example, '0 9 * * 1-5' runs at 9am on weekdays, or '30 17 * * 1-5' runs at 5:30pm on weekdays.

What about running on weekends only?

Use '0 0 * * 0,6' for weekends only (Sunday and Saturday), or '0 0 * * 6-7' for Saturday through Sunday.

Does this account for holidays?

No, cron doesn't recognize holidays. It will run on weekday holidays. You'll need to add holiday detection logic in your script if needed.

Practical Examples

Weekday Business Reports

Generate daily business reports for workdays only.

Workday Database Cleanup

Clean up temporary business day data each night.

Business Hours Prep

Prepare systems and data for the next business day.

Common Issues & Solutions

If tasks need to run at the start of business hours, use '0 8 * * 1-5' or similar instead of midnight.

For end-of-business-day tasks, use '0 18 * * 1-5' (6pm) or adjust to your business closing time.

Remember that Friday midnight (00:00 Saturday) is technically the weekend. For true Friday execution, use a daytime hour.

Consider your international team's timezones if you're generating reports - midnight in one timezone might be business hours in another.