Cron Expression: On the last weekday of every month (approx) at midnight
Cron Expression
0 0 25-31 * 1-5On the last weekday of every month (approx) at midnight
Click the expression to select it, then copy.
Quick Answer
The cron expression for "on the last weekday of every month (approx) at midnight" is `0 0 25-31 * 1-5`. 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 | 25-31 | Between day of month range: 25-31 |
| Month | * | Every month |
| Day of Week | 1-5 | Between day of week range: 1-5 |
Common Use Cases
- →Month-end business closing
- →Last business day reports
How to Use This Expression
Vercel Cron Jobs
// vercel.json
{
"crons": [{
"path": "/api/your-endpoint",
"schedule": "0 0 25-31 * 1-5"
}]
}GitHub Actions
# .github/workflows/scheduled.yml
on:
schedule:
- cron: '0 0 25-31 * 1-5'Linux crontab
0 0 25-31 * 1-5 /path/to/your-command.sh