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.

Get (CurrentDate) Issue

Featured Replies

I need to add an expiration date so I created a global field that will take today's date and add 15 days. This is the expiration date.

The problem I have is with certain days of the month. When I compare get(CurrentDate) to the set date +15 It thinks it's expired if it's installed on those days. Strangly this only happens on certain dates.

My script looks this:

Set Field [install_Date;Get(CurrentDate)+15]

If [Get(CurrentDate) > Install_Date]

Show Custom Dialog

End program

The problem is that this will not work if the install dates are on 2,3,4,5,6,7,8,9 but will work for all the other days of the month.

Why is this so strange? It fails if you put in those dates in the month but not the others.

Thanks for any help on this.

Edited by Guest

Hi

that script can't work !

If: Install_Date = Get (CurrentDate) + 15

Get (CurrentDate) will be ALWAYS < Install_Date !

Get (CurrentDate) = Install_Date - 15

Could it be that Install_Date is actually a TEXT field?

Try something like this:

If [ IsEmpty (Expiration_Date )]

Set Field [Expiration_Date ; Get( CurrentDate )+15]

Else If [Get( CurrentDate ) > Expiration_Date]

Show Custom Dialog

End If

Edited by Guest
Logical correction: Expiration_Date is better !

  • Author

OMG do I feel stupid. Yes it was a text field. It now works perfectly. Only took me 4 hours of testing before taking 2 min. to post on this site and got the answer quickly.

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.