A have a table column using Views from Webform submission. The variable of this column is submission date [completed].

I need to create another column showing another date [completed] + 7 days.

I tried Global: Math expression [completed]+7 but it does show the correct date but another value.

How can I display [completed]+7 in another column.


I have solved my own problem. Using Views PhP module. Add field Global:PHP, in the output code box:

$correctdate = $row->completed; 
$correctdate1 =strtotime("+7 days", $correctdate);
$cdate = date("j/n/Y - g:i a", $correctdate1);
echo ($cdate);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.