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.

Date due calculation

Featured Replies

Can you recommend an easy way to add a number of days (say 10 days) to the current date to calculate a due date ?

Thanks

Depends on how you want to use it. Get (CurrentDate) + 10 as an unstored calc will give the correct date.

Do you already have a field that holds a current date (maybe a gobalfield set via startup script?

if so , create a calulation field called Duedate which would be:

Duedate = [your currentdatefield] +10

then set result to display as 'date'

or another way is

Duedate = Get(Currentdate) = 10

but there would be nothing to update that field , so after today it would show the wrong date

sorry I meant:

Duedate = Get(Currentdate) + 10

or another way is

Duedate = Get(Currentdate) + 10

but there would be nothing to update that field , so after today it would show the wrong date

If unstored - it will update correctly.

It will always show a future date (todays date + 10 days)if unstored so it cannot be a due date as it will never come to pass.

Depending on your data and how you will be using it and for what it can be done in a couple of ways.

One would be:

Let's say you create an invoice. You set a InvoiceDate field as an auto-enter date on creation. That gives you obviously the date you created the invoice on. You then define "DueDate" field and set it to a calculation of InvoiceDate + 10 and the result is your Due Date.

with that setup if you create an invoice on 4.1.08 the due date would be 4.11.08.

  • Author

This is what I needed.

Thanks very much

  • Author

All, you have been very helpful, thanks

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.