Skip to main content

node-cron Expression Generator

node-cron schedules tasks in Node.js using familiar Unix-style cron, with an optional leading Seconds field. Because jobs run inside your Node process, the schedule follows the server's local timezone unless you pass one explicitly.

Build a schedule below and copy the cron.schedule() call into your application.

Official Node-cron documentation →

Expression

Min
Hour
Day
Month
DOW
0
9
*
*
1-5

Tip: press Ctrl+Enter to copy

Presets

Visual Builder

Description

At 09:00 AM, Monday through Friday

Timezone

Node-cron cron syntax

MinHourDayMonthDOW
09**1-5

Node-cron cron examples

Click any example to load it into the generator above.

Monitor your Node-cron cron jobs

A cron expression only controls when a job is scheduled — not whether it actually ran. These tools alert you when a scheduled job fails, runs late, or never starts.

The link above is an affiliate link — we may earn a commission at no extra cost to you.

Frequently asked questions

What timezone does node-cron use?

By default it uses the timezone of the machine running your Node process. To pin a zone, pass an options object: cron.schedule('0 9 * * 1-5', task, { timezone: 'America/New_York' }).

Does node-cron support a seconds field?

Yes. node-cron accepts an optional sixth (leading) field for seconds, so '*/10 * * * * *' runs every 10 seconds. With five fields it behaves like standard Unix cron.

Do scheduled tasks survive a server restart?

No. node-cron runs in-process, so tasks only fire while your Node application is running. For durable scheduling across restarts, use a system cron, a job queue, or a managed scheduler.