Cron Last Friday of the Month

0 0 * * 5

Every Friday at 12:00 AM

Next 10 Executions

Times shown in UTC

  • Fri, May 22, 202600:00
  • Fri, May 29, 202600:00
  • Fri, Jun 5, 202600:00
  • Fri, Jun 12, 202600:00
  • Fri, Jun 19, 202600:00
  • Fri, Jun 26, 202600:00
  • Fri, Jul 3, 202600:00
  • Fri, Jul 10, 202600:00
  • Fri, Jul 17, 202600:00
  • Fri, Jul 24, 202600:00

Field Breakdown

0
Minute
0
0
Hour
0
*
Day of Month
Every day
*
Month
Every month
5
Day of Week
Fri

About This Schedule

Standard cron cannot directly express "last Friday of the month" because it has no concept of "last weekday" or relative date calculations. The closest cron approach is to run on all Fridays (0 0 * * 5) and check in your script whether today's date is within the last 7 days of the month.

Here's the logic: if today is Friday AND today's date + 7 > number of days in the current month, then it's the last Friday. In bash: [ $(date -d "+7 days" +%m) != $(date +%m) ] && run_job. This approach runs the cron entry weekly but only executes the actual job on the last Friday.

Some cron implementations (like Quartz Scheduler) support the L modifier: 0 0 ? * 6L means "last Friday of the month" directly. If your system supports extended syntax, check for L, W (nearest weekday), and # (nth weekday of month) modifiers.

Frequently Asked Questions