Cron Expression: On December 31st at midnight (New Year's Eve)
Cron Expression
0 0 31 12 *On December 31st at midnight (New Year's Eve)
Click the expression to select it, then copy.
Quick Answer
The cron expression for "on december 31st at midnight (new year's eve)" is `0 0 31 12 *`. Copy and paste this into your crontab, Vercel cron config, GitHub Actions workflow, or any standard cron-compatible scheduler.
Field-by-Field Breakdown
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | At minute 0 |
| Hour | 0 | At hour 0 |
| Day of Month | 31 | At day of month 31 |
| Month | 12 | At month 12 |
| Day of Week | * | Every day of week |
Common Use Cases
- →Year-end processing
- →Annual close-out
- →End-of-year reports
How to Use This Expression
Vercel Cron Jobs
// vercel.json
{
"crons": [{
"path": "/api/your-endpoint",
"schedule": "0 0 31 12 *"
}]
}GitHub Actions
# .github/workflows/scheduled.yml
on:
schedule:
- cron: '0 0 31 12 *'Linux crontab
0 0 31 12 * /path/to/your-command.sh