Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Server Script validate only on First Day of a month.

Featured Replies

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.

1 hour ago, CKonash said:

does this look right?  

No. If you want the script to test if today is the first day of the month, then you should test for:

Day ( Get ( CurrentDate ) ) = 1

 

  • Author

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

 

It's because I am lazy and you're not. :tongue2:

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. 

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.