As much as it is easy to just use a setInterval
to make something happen every x seconds, anything more complicated should be setup as a Cron task. It will also allow you to specify doing something at a specific time of day, even if your Node process were to crash.
My solution for creating this setup easily and in a manageable way is as follows. I have the following script which needs to be run every day at 10.30am which sends a text message via Twilio.