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.

Years in Business Calc

Featured Replies

I wish to have a calculation field result in Years, Months and Day in business. I have a date field for date founded.

Anyone have a niffty calc to do this?

Of course, thank you in advance!

This is just like a Age calculation, which you can find several examples by searching the Forum. The Custom Functions has at least one, which I labeled Elapse ( StartDate ; EndDate ) and can be found Here.

You do not have to use a custom function for this calculation to work.

HTH

Lee

I'd suggest you follow the links here:

http://www.fmforums.com/forum/showpost.php?post/213906/

  • Author

Thank you for your help.

I was having issues using the Get (Current Date) function.

I found a solution that seems to work well for me.

I got it from Database Pros:

http://www.databasepros.com/FMPro?-DB=resources.fp5&-lay=cgi&-format=list.html&-FIND=+&resource_id=DBPros000773

If anyone sees an issues with the linked solution please feel free to comment.

Again, THANK YOU ALL!

I have no issue with this solution or another, but with the concept itself. There is no such thing as 'years, months and days'. It's a meaningless phrase. The number of days in a month is not constant, so no one can take a period of time and divide it into x months and y days in any meaningful way.

In this thread I have made a bet with myself that I will break any calculation of the "years, months, days" type. Of course, that too is a meaningless promise, because how can you prove that something meaningless is incorrect?

Nevertheless, consider these results of the solution you have chosen:

From Jan 31, 2007 to Mar 1, 2007: 0 Years, 1 Month, 1 Day;

From Jan 30, 2007 to Mar 1, 2007: 0 Years, 1 Month, 1 Day;

From Jan 29, 2007 to Mar 1, 2007: 0 Years, 1 Month, 1 Day;

From Jan 28, 2007 to Mar 1, 2007: 0 Years, 1 Month, 1 Day.

How can that be? The period is growing by one day in each step - yet the difference remains the same!

  • Author

Ah, I gottcha.

Interesting topic, thanks for the thread link, I enjoyed the read.

It's a good thing I don't need this calc to be "precise" or I would go mad.

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.