Cron Every Friday

The 5 in the day-of-week field means Friday (the week runs 0-6 from Sunday). With 0 0 in the minute and hour fields, the job runs at midnight every Friday.

Cron Expression
0 0 * * 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 Week5Friday only

Variations

0 0 * * 5Every Friday at midnight
0 17 * * 5Every Friday at 5 PM (end of work week)
0 9 * * 5Every Friday at 9 AM

Common Use Cases

  • End-of-week reports and summaries
  • Friday afternoon backups before the weekend
  • Weekly cleanup ahead of low-traffic periods

Tips & Best Practices

Friday is 5 in the 0-6 (Sunday-Saturday) day-of-week range.

A common pattern is 0 17 * * 5 to wrap up the work week at 5 PM.

Names also work in most cron implementations: 0 0 * * FRI.

Related Intervals