nickOS Posted April 3, 2008 Posted April 3, 2008 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
mr_vodka Posted April 3, 2008 Posted April 3, 2008 Depends on how you want to use it. Get (CurrentDate) + 10 as an unstored calc will give the correct date.
Robert Collins Posted April 3, 2008 Posted April 3, 2008 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
Robert Collins Posted April 3, 2008 Posted April 3, 2008 sorry I meant: Duedate = Get(Currentdate) + 10
Anuviel Posted April 3, 2008 Posted April 3, 2008 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.
Recommended Posts
This topic is 6137 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now