Jump 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.

Featured Replies

  • Newbies

I hope someone can help with this date calculation..

I have a "Hire date" and I want to calculation how long an employee has been employeed by "days, weeks, months, and years."

Thanks alot in advance,

Linda

EmployedInDays = Status(CurrentDate) - Hire Date

EmployedInWeeks = EmployedInDays / 7

Beyond that, you'll have to precisely define what you mean by "months". Consider cases of either today or hire date being the 31st of a month or not, and the other being in months without a 31 (or 30, or 29).

Do a search on "birthdate" in this and the ScriptMaker forums for a number of ways to compute "age" in years. Similar can be done for months... depending upon what is meant.

Putting it all together is a matter of computing years, computing a new date exactly that many years, then months from that new date, and so on.

HTH.

Have a look at my attached file in the Handy Bits post in the Samples section of this forum. There are several treatments of duration intervals in the dates and times tabs.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

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.