Posted by firebug on August 7, 2014 at 12:36am
Ok....trying to extend tasks in Atrium.
I added Actual Start date field in CCK
now i want to calculate the number of days between Actual Start and Due Date
I am using Computed COlumns
first i need to calculate the julian number... then ill subtract the two numbers to get the length in days. Then do the same from Actual Start to Now.
To calculate a JuliantoJD result in the interface for this is:
$test3 = getdate($entity->field_due_date[LANGUAGE_NONE][0]['value']); $jd3=juliantojd($test3['mon'],$test3['mday'],$test3['year']); entity_field[0]['value'] = $jd3;
nothing happens.
Any clues or alternatives ? This is a fairly straightforward calculation but maybe Computed Columns cannot read date fields.
thanks
Steve