Scheduled script to run on Last day of every month at 00:00:00

Nani7
Tera Contributor

Hi All,

I need a small confirmation for the below requirement.

Actually, there is an event that should be triggered on last day of every month [as Number of days in a month is not same] at 00:00:00. For Eg. 28th Feb 2019 00:00:00 but not at 28th Feb 2019 23:59:59.

I have read in ServiceNow docs as follows:

find_real_file.png

So, I have set the scheduled time as follows:

find_real_file.png

Now I have a doubt whether this would run correctly on 28th Feb 2019 00:00:00 or any other month if the last day is not 31st.

 

Please confirm!

Regards,

Nani

1 ACCEPTED SOLUTION

Yes, setting the run date to the 31st at 00:00:00 will run the job on the last day of every month at 00:00:00 only.  Not at any other time during the day.

View solution in original post

11 REPLIES 11

Hi Nick,

Thanks for the reply.

I just want to know if this runs on last day of every month at 00:00:00 only! It should not run at any time other than 00:00:00 on every last day of month!

 

Regards,

Nani

Yes, setting the run date to the 31st at 00:00:00 will run the job on the last day of every month at 00:00:00 only.  Not at any other time during the day.