Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Days old 1

Status
Not open for further replies.

Dukester0122

IS-IT--Management
Mar 18, 2003
587
US
I need a formula that would show how old our invoices are based on number of days. Example, Invoice001 was created 01/01/2004 then today is 03/15/2004, so Invoice001 is 75 days old.

 
Create a formula and just subtract the 2 dates.

//@Days Old
currentdate - {table.invoice_date}

Second way to do it is to use the DateDiff function

//@Days Old
datediff("d",{table.invoice_date},currentdate)

Both of these will return integers representing the number of days difference between a date field and today

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top