Skip to content

Yearly on January 1

Runs the job once per year at midnight on January 1st. This is the standard annual cron schedule used for year-end processing, annual report generation, license renewals, and any task that needs to execute exactly once per year at the start of the new year.

Cron Expression 0 0 1 1 *

What is the cron expression for Yearly on January 1?

The cron expression for Yearly on January 1 is 0 0 1 1 *. This five-field cron schedule uses the format minute, hour, day-of-month, month, and day-of-week. Runs the job once per year at midnight on January 1st. This is the standard annual cron schedule used for year-end processing, annual report generation, license renewals, and any task that needs to execute exactly once per year at the start of the new year. Common use cases include annual report generation and year-end data archival.

Field Breakdown

Field Value Meaning
Minute 0 At minute 0
Hour 0 At midnight
Day of Month 1 On the 1st
Month 1 January
Day of Week * Any day of the week

Example Next Run Times

  1. 1. 2027-01-01 00:00
  2. 2. 2028-01-01 00:00
  3. 3. 2029-01-01 00:00
  4. 4. 2030-01-01 00:00
  5. 5. 2031-01-01 00:00

Common Use Cases

Frequently Asked Questions

Is @yearly the same as this?

Yes, the @yearly (or @annually) shorthand is equivalent to 0 0 1 1 *, running at midnight on January 1st each year.

What if the job fails on January 1st?

Since this runs only once a year, implement robust error handling, retries, and alerting. Consider scheduling a backup run on January 2nd or adding manual trigger capability.

How do I run on a different date each year?

Change the month and day fields. For example, 0 0 15 6 * runs on June 15th each year, and 0 0 1 7 * runs on July 1st.

Related Cron Expressions

0 0 1 1,4,7,10 * Every Quarter (Jan, Apr, Jul, Oct) 0 0 1 * * First Day of Month 0 0 * * * Daily at Midnight

Related Reading

Cron Expression Guide: Syntax, Examples & Common Schedules → How to Generate UUID v4 in JavaScript →