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.

How do i know if a date is valid?

Featured Replies

Hi,

suppose I have a field, which I want to validate using a calculation and my user enters for a date 10/42/04

How do I know that is ont a good date ? I'd like to find this out so that i can

then use my calculation to display a message.

I thought Isvalid might work, does it? I didn't see any mention of it saying it worked for dates.

Or do i have to do my own Leap year / 31 day check? If this is the case, has anyone written such a calculation?

thanks,

sincerely,

J__

Yes, IsValid() works for dates. It'll take leap years etc into account, until the year 3000. After that you're on your own. wink.gif

You can also use field-level validation, and set it to require 4-digit year dates.

  • Author

Hi Vaughan,

Thanks for the verification. Handles leap years! excellent.

only up to year 3000 eh <grin> ... hmm might have to find another way <g>

thanks,

sincerely,

J__

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.