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.

Age Calculation

Featured Replies

I was wondering what the easiest way would be to create a simple script to calculate the age based on the DOB and the current date.

You haven't indicated the result you wish ... whether in years, written out in years and days or whatever. Here's one. I think I have this puppy memorized. This gives you their age in years. Calculation result should be number:

Let ( [

now = Get ( CurrentDate ) ;

b = DOBdateField

] ;

Year ( now ) - Year( b ) - (( Month ( now ) + Day ( now ) / 100 ) < ( Month ( b ) + Day ( b ) / 100))

)

Calculation must be unstored to update properly. You don't need a script but I suppose you could use it that way. I learned this from Comment or Ray - not sure which now. :wink2:

LaRetta

  • Author

Thank you so much... I thought I was pretty good at this thing.. Just goes to show ya!

  • 1 month later...

Thank you LaRetta!

"Search and you will find"

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.