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.

confused about using dates in calculations

Featured Replies

i have read a few different posts about using dates, but I haven't had much success understanding or implementing the best way to do this...

I have a database with different construction jobs, each job has a list of all material needed for the site with the dates needed, and the vendor it is coming from. I have a seperate table with all the vendor info and their respective lead time in weeks. What I would like to do is flag the items that wont make it in on time based on the current date and the vendors lead time, then incorporate it in a script to email the appropriate project manager.(i pull the email addresses from another table with all of the job contact information).

thanks in advance!

Mariano

flag the items that wont make it in on time based on the current date and the vendors lead time

There seems to be an element missing: when was an item ordered? The expected date of delivery is:

DateOrdered + 7 * Vendor::Lead

An item won't make it on time if:

ExpectedDate > DateNeeded

The current date doesn't enter the equations.

  • Author

Right, but the material may not have been ordered yet.

I have the date the material is needed at the site, and the time it takes the vendor to get us the material after the product is ordered.

I need to find the items that were not ordered and that will not make it to the site on the required date if ordered today. So if today is 3 weeks away from the date we "require" it at the site and the vendors lead time is 6 weeks, and we dont have it on order, the material needs to be flagged. Often orders arent placed in time due to the approval process of drawings, and the dates we originally set for them to be required at the site need to be pushed back.

will not make it to the site on the required date if ordered today

Then use Get(CurrentDate) instead of DateOrdered in the same calc as above.

Note that this has to be unstored.

When you use unstored, can another field refer to this "unstored" field in its validation calculation? I'm running into a validation problem and was wondering if this might be my problem.

I don't see why that should be a problem.

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.