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
June 2026
Fires on 22 days
Su
Mo
Tu
We
Th
Fr
Sa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

Node-cron cron syntax

MinHourDayMonthDOW
09**1-5

Node-cron cron examples

Click any example to load it into the generator above.

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.