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.

compute age in months

Featured Replies

How do I compute a child's age in months?

I have two DATE fields to compute the age from,

child_dob and school_date

both are 4-digit dates. I am not sure if I should use a Calculation field or scripting logic. Thanks in advance for advice.

Try:


12 * ( Year ( EndDate ) - Year ( StartDate ) ) + Month ( EndDate ) - Month ( StartDate )

- ( Day ( EndDate ) < Day ( StartDate ) )




This assumes that a person becomes a month older on the same day-in-month as his birthday or when the month ends - whichever happens first.





Alternatively, you could just do a rough estimate based on the length of average month:





Div ( EndDate - StartDate ; 30.436875 ) 

  • Author

Hi Comment ... I gave the second suggestion a try and it's perfect.

The first suggestion simplifies what I've been seeing from other sources - it will be a good exercise for me to learn syntax.

As always, THANK YOU! :laugh2:

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.