Cron Schedules

Quarterly (Every 3 Months)

Run on the first day of January, April, July, and October.

Pattern

0 0 1 1,4,7,10 *

Explanation

Runs at midnight on the 1st of months 1, 4, 7, and 10 - perfect for quarterly reports.

Examples

Cron Expression
Output
0 0 1 1,4,7,10 *
Runs On
Output
Jan 1, Apr 1, Jul 1, Oct 1

Code Examples

Crontab
# Crontab entry
0 0 1 1,4,7,10 * /path/to/quarterly-report.sh

# Breakdown:
# 0       - At minute 0
# 0       - At hour 0 (midnight)
# 1       - On day 1
# 1,4,7,10 - In months Jan, Apr, Jul, Oct
# *       - Any day of week
Node.js
// Node-cron
const cron = require('node-cron');

cron.schedule('0 0 1 1,4,7,10 *', () => {
  const month = new Date().getMonth() + 1;
  const quarter = Math.ceil(month / 3);

  console.log(`Running Q${quarter} report`);
  generateQuarterlyReport(quarter);
});

Try it Now

💡 Tips

  • Perfect for financial quarter reports
  • Add quarter number to report names
  • Consider running day after (2nd) to include all Q data
  • Send stakeholder emails after completion
  • Archive previous quarter data
  • Fiscal year may differ from calendar year

⚠️ Common Pitfalls

  • Fiscal quarters may not align with calendar
  • Consider timezone for global companies
  • Long-running reports may need optimization
  • System downtime on 1st means missed report