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.

Calculate age in partial years

Featured Replies

  • Newbies

I am very new to Filemaker. I am trying to use Filemaker instead of Excel for a few projects and I am having a hard time getting some of the calculations worked out.

I am trying to get Filemaker to calculate the age of an item using the current date and a field called "manufacturedate". I got it to display a result in whole years (for example 2.0 years) but I need it to break it down into partial years (for example 2.6 years)

I am sure this is easy, but I have tried a bunch of combinations of code and tried using formulas from some of the sample files with no luck.

Try something like:

Round ( ( Get (CurrentDate) - ManufactureDate ) / 365.2425 ; 1 )

This topic comes up from time to time. I just did a search for [color:red]+Years +Month +Days, and pulled up all kinds of hits. Note the Pluses [color:red]+, they are important to narrowing your search criteria down,

Start with this one Link and pay attention to any posts by comment.

  • Author
  • Newbies

Try something like:

Round ( ( Get (CurrentDate) - ManufactureDate ) / 365.2425 ; 1 )

Awesome! Worked like a charm. Thanks!

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.