scottvaughan Posted April 21, 2006 Share Posted April 21, 2006 I want to do a few things with dates. They are: Calculate whether today's date is past the due date of a job. See how long it took to process a job from the date the record was entered to date it was marked closed. Are there functions that let me evaluate a date as a number? Link to comment Share on other sites More sharing options...
comment Posted April 21, 2006 Share Posted April 21, 2006 The date IS a number. To calculate whether today's date is past the due date of a job, use: Get ( CurrentDate ) > DueDate This will return 1 if true, 0 when false (this calculation needs to be unstored in order to update with the current date). To see how long it took from Date1 to Date2 use: Date2 - Date1 This will return the number of elapsed days. Link to comment Share on other sites More sharing options...
scottvaughan Posted April 24, 2006 Author Share Posted April 24, 2006 Thanks. I found out that I had to have the fields evaluated in a particular order. Once I rearranged the order, things worked out fine. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6570 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