dandy9563
dandy95638mo ago

Scheduler

Hi, how can I set a task in cron to always run on the last day of the month? Every month has a different number of days
2 Replies
rubenf
rubenf8mo ago
hacky but you can set on the first day of the month on a different timezone or set 3 different crons: https://stackoverflow.com/questions/6139189/cron-job-to-run-on-the-last-day-of-the-month
Stack Overflow
CRON job to run on the last day of the month
I need to create a CRON job that will run on the last day of every month. I will create it using cPanel. Any help is appreciated. Thanks
dandy9563
dandy9563OP8mo ago
Thank you. It helped me a lot.