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.

Difference in Dates Calculations

Featured Replies

I am trying to get the difference between the create date and a modify date. I have done this before in the past with no issue, but for some reason i can't get it to work now.

All i have is modify_date - create_date. It ends up giving me a negative 6 digit number. For example, 2/28/06 - 3/16/06 = -732386

Am I doing this completely wrong?

Thanks!

You definitely should be getting a negative since your creation date is larger than your modification date. However, it shouldn't be that large. It looks like it somehow returned a date value and then converted it to a number. I am guessing your modify, date, creation date or calculation for elapsed time is set to the wrong type like number or text but I could replicate your results on a sample file.

732386 is March 16, 2006.

If

something - 732386 = -732386

then

something = 0

Which means that either your modify_date is empty, or you are not referencing it correctly, or something else of that nature.

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.