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.

How many days between two dates calculation?

Featured Replies

I'm sure it's fairly simple, but I'm new to this FM stuff, and I have two dates, Move In and Move Out, and I need to calculate the days between two dates. I just need a whole number. I appreciate any help!

I'm sure it's fairly simple, but I'm new to this FM stuff, and I have two dates, Move In and Move Out, and I need to calculate the days between two dates. I just need a whole number. I appreciate any help!

It is indeed, what you need to know is that each date corresponds to a certain integer, today is 734151 - what integer do you think tomorrow is? The issue here is to make the result receiving field an appropriate type ... I would suggest number in this case -_-

--sd

It is as Soren describes, so move_outDate - move_inDate = number of days elapsed.

HTH

Tim

  • Author

Ok, I feel stupid now, I thought I tried that and it didn't work, but I just did and it works. Quick question though, is it possible to not show a number if it's negative?

I have a field that is "Days Until Move In", which shows: 5 days, 4 days, etc, but after they move in it goes negative, so I'd like to say something like "Moved In" if the result is less than zero. I currently have:

Move In Date - Get (CurrentDate) and I'd like to say something like If less than 0 then say "Moved In".

Thanks for the help guys.

Ok, I feel stupid now, I thought I tried that and it didn't work, but I just did and it works. Quick question though, is it possible to not show a number if it's negative?

I have a field that is "Days Until Move In", which shows: 5 days, 4 days, etc, but after they move in it goes negative, so I'd like to say something like "Moved In" if the result is less than zero. I currently have:

Move In Date - Get (CurrentDate) and I'd like to say something like If less than 0 then say "Moved In".

Thanks for the help guys.

No problem,

We all have to learn the basics, best way to learn .... Keep asking questions.

Use a Let and a case statement as the field formula like so....

Let( dys = Move_In_Date - Get(CurrentDate);

Case( dys > 0; dys & " Days"; "Moved In") )

Look up these two functions in help to get the syntax so you understand how to use them.

They are very useful and learning them will be worth much more than the effort.

HTH,

Tim

  • Author

Huge help. I appreciate all the info.

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.