dates and percent complete

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
firebug's picture

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

Open Atrium

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: