I need to calculate a date based on a membership but this has to done with timestamp to have a common numeric value. We've read almost the whole smarty.net documentation and couldn't find our solution.
This would have been our best trick:
{capture assign="end_date"}{latestcurrentmembership.end_date}{/capture}{$fin = $end_date|strtotime}
but either capture assign
and strtotime
seem to be working within CiviCRM.
Any idea?
EDIT 1: capture assign
works well, it's strtotime
that seems to not work within CiviCRM