Skip to content
SpringCronTools

example · 6 fields

Spring Cron Expression for Last Friday

Runs at 00:00:00 on the last Friday of every month.

spring cron
0 0 0 * * 5L

javaJava @Scheduled

@Scheduled(cron = "0 0 0 * * 5L")

fieldsField breakdown

  • SEC0at second 00-59
  • MIN0at minute 00-59
  • HR0at 00:000-23
  • DOM*on every day of the month1-31 · L · W
  • MON*in every month1-12 · JAN-DEC
  • DOW5Lon the last Friday of the month0-7 · MON-SUN · L · #

next runsNext executions (UTC)

Next execution times in UTC
timedatein
00:00:00Fri, 30 Oct 2026—
00:00:00Fri, 27 Nov 2026—
00:00:00Fri, 25 Dec 2026—
00:00:00Fri, 29 Jan 2027—
00:00:00Fri, 26 Feb 2027—

mistakesCommon mistakes

  • Copying the number from a Quartz expression: Quartz 6L means last Friday, Spring 5L does. The two dialects number days differently.
  • Reading "L" in day-of-week as "last week" — it means "last occurrence of that weekday in the month".

nextRelated Spring cron examples

nextRelated guides

nextRelated tools

Questions

Is 5L the last Friday in Spring?

Yes. Spring numbers days of the week 0-7 with 0 = Sunday, so 5 is Friday and 5L is the last Friday of the month. The Quartz equivalent is 6L.