'i am using node cron for running jobs , i will this run every day including saturday and sunday '00 00 22 * * *'

  • i am using node cron for running jobs , i am confused will this pattern run every day including Saturday and Sunday as well

'00 00 22 * * *'



Solution 1:[1]

You have an entry too many in your cron expression.

It should be:

minute hour dayofmonth month dayofweek

Assuming you want to run at 10pm every day:

0 22 * * *

If you ever need to double check your cron expressions, I recommend using crontab guru

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 caffeinated.tech