Cron Every Friday
Configure a cron job to run every Friday at midnight using 0 0 * * 5. Detailed field breakdown, end-of-week use cases, and scheduling guidance.
Cron Expression
0 0 * * 5
Field Breakdown
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | At 0 |
| Hour | 0 | At 0 |
| Day of Month | * | Every day of the month (1–31) |
| Month | * | Every month (1–12) |
| Day of Week | 5 | At Friday |
Detailed Explanation
The cron expression 0 0 * * 5 schedules a task to run once per week, every Friday at midnight.
Field-by-field breakdown:
0(Minute): At minute 0. The task fires at the start of the hour.0(Hour): At hour 0 (midnight). The task runs at the beginning of Friday.*(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 the month.5(Day of Week): Friday only. In standard cron, 5 represents Friday.
This means your task will execute once per week at the start of Friday. Friday scheduling is ideal for end-of-week summaries, pre-weekend backups, and weekly cleanup jobs. Many teams use Friday cron jobs to generate weekly status reports or prepare data exports that will be reviewed at the start of the following week. If you need the job to run at the end of the business day instead, consider using 0 17 * * 5 for Friday at 5 PM. 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
Perfect for generating weekly project status reports and distributing them to stakeholders before the weekend begins.
Try It — Interactive Builder
Every Friday at 12:00 AM
Next 10 Executions
Ctrl+Shift+C to copy expression