Sadler
Member
Hi,
been asked to add a calculation to a list so I have added a calc element to hold/display it. I am converting the formula from a spreadsheet and what I have is this;
Basically it takes a pair of dates (open and closed) and works out what the number of days is between them, if the closed date field is empty it should use todays date rather than a zero value.
I am not getting anything back from the field.
Any clues?
Burnsy
been asked to add a calculation to a list so I have added a calc element to hold/display it. I am converting the formula from a spreadsheet and what I have is this;
Code:
if ({au_data_build___Closed_Date} >0 ) { $days = date_diff({au_data_build___Closed_Date},{au_data_build___File_Opened})
} else { $days = date_diff(date(),{au_data_build___File_Opened})
};
return (float) $days;
Basically it takes a pair of dates (open and closed) and works out what the number of days is between them, if the closed date field is empty it should use todays date rather than a zero value.
I am not getting anything back from the field.
Any clues?
Burnsy
Last edited: