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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number of Days

Status
Not open for further replies.
Jan 3, 2011
6
US
I have a formula field and I want to get the difference in days from that day to the Invoice date. Any ideas? I keep getting an Error that is is expecting a date in the formula field.

Here is what I AM USING:

{View_test.InvoiceDate} - {@Promise Date}
 
Hi,
What Type/Contents is {@Promise Date}



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Hi,
If both are true DATE types try Crystal's DateDiff function
in a formula like:
@HowManyDays
Code:
Local NumberVar Days;
Days := DateDiff ("d",{@Promise Date},{View_test.InvoiceDate})



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
If they were both date fields, you wouldn't get that error, so trying wrapping the formula in date() and see if that resolves the issue. If it doesn't, then right click on the fields->browse field->and note the datatype shown at the top and report back.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top