Nodejs cron job / daily job 2 AM

Viewed 1145

I have a cron in nodejs that executes every 5 hours, with this code :

cron.schedule("0 0 */5 * * *")

I want it to execute every day at 2 AM , what do I change ?

Thanks

1 Answers

You should make this line to be

cron.schedule("0 0 2 * * *")
Related