Cron Expression: 0 0 28-31 * *
Approximate end-of-month - fires on days 28-31 of every month. Most schedulers don't have a true 'last day' wildcard; you often pair this with a script-side check.
Field Breakdown
| Field | Value |
|---|---|
| Minute | 0 |
| Hour | 0 |
| Day of Month | 28-31 |
| Month | * |
| Day of Week | * |
Common Use Case
Monthly closing, end-of-month reports.
Equivalents in Popular Schedulers
crontab (Linux/macOS)
0 0 28-31 * * /path/to/your/script.sh
GitHub Actions (.github/workflows/*.yml)
on:
schedule:
- cron: '0 0 28-31 * *'
AWS EventBridge (cron format)
cron(0 0 28-31 * *) # Note: AWS uses 6 fields with year
Kubernetes CronJob
spec: schedule: "0 0 28-31 * *"