Skip to main content

Calculating Days between Dates

Hi! I need to calculate the days between the field date and 3/31/2019. I am trying to do this in Equation Editor and cannot use the @Age function. I entered in the following: "20190331" - INVOICE_DATE and the equation error "mismatch field type" is showing up. Any help would be appreciated. 

Brian Element Sun, 04/11/2021 - 16:19

In reply to by mickeymurray

Hi MIckey,

That is because what I gave you was only for the date field.  If you are using the @age the entire function would be something like this:

@age(@ctod("20190331", "YYYYMMDD"), INVOICE_DATE)