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

Chalan B L
Giga Guru

Instead cant we run the schedule job on every month 1st ... the timing could be 00:01:00

Cant we run like this ??

 

Mark the answer as correct and helpful if it helped you..!!!

 

Regards,

Chalan

 

Nani7
Tera Contributor

Hi Chalan,

Please note that it should run on last day of every month at 00:00:00

 

Regards,

Vamsy

Nani7
Tera Contributor

Hi Chalan,

 

This should run on last day of every month at 00:00:00. Please confirm if the scheduled job mentioned in y query serves the purpose.

 

Regards,

Vamsy P

Nani7
Tera Contributor

Hi Chalan,

 

This should run on last day of every month at 00:00:00. Please confirm if the scheduled job mentioned in my question serves the purpose.

 

Regards,

Nani