Jump to content

Server Script validate only on First Day of a month.


This topic is 830 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi all. 

I searched and couldn't find what I thought was the correct answer.  I'm trying to have my solution successfully run a scheduled server script on the first day of each month.   I have the server script running and working, now its just time to have it only run once per month on the first day.   If I add the following to an "If" statement at the beginning of the script, does this look right?  

Get ( CurrentDate ) = Date ( Month (Get ( CurrentDate ))-1;0; Year ( Get ( CurrentDate ) ) )

Thank you in advance for you time!  

Chris K.

Link to comment
Share on other sites

Thank you so much Comment!  

I'm not sure why I always try to over complicate things.  Your answers are always so simple I feel stupid!! 

Thanks again! 

Chris

 

Link to comment
Share on other sites

I would be nice if the server schedule would have more of a cron type scheduling.

Scripts that run daily just to see if today is the day I get to run.

In one solution we had so many of these types of server scripts we tossed that all out and run one which goes to a 'scheduler' database iterates the records of other scripts to run if it meets the date criteria. 

Link to comment
Share on other sites

This topic is 830 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.