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.

Validate a date field entry via calculation?

Featured Replies

I have a date field in a Custom Message Box, and I've found that if the user enters "9/31/2007" my script fails (since there is no September 31st).

I've tried IsValid(dateField) but this returns true for "9/31/2007".

Is there an easy way to test for a well-formatted but meaningless date using a calculation in a script step?

Try wrapping it in a GetAsDate function. This evaluates false:

IsValid( GetAsDate ( "9/31/2007" ) )

Hee, Hee,

I was staring at your solution:

Try wrapping it in a GetAsDate function. This evaluates false:

IsValid( GetAsDate ( "9/31/2007" ) ) 

trying to figure out why that would return false...Oh yeah, September only has 30 days!

Man, I gotta get a calendar...

I don't get this. If I enter an invalid date into a DATE field using a custom dialog, then ask if the date is valid, i.e. IsValid ( Datefield ), the answer is FALSE.

  • Author

Ok, my mistake -- I had named it as a date field but it was actually a text field. Sorry for the confusion!

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.