I have two dates fields start_date, end_date in editable grid. I created a new field “diff_date” in wich I would like to display the difference between the two dates fields.
I create ajax event on end_date field on change I want to display the difference between these two dates .
the code is :
$current_date = date(‘Y-m-d’);
{diff_date} = sc_date_dif($current_date, ‘aaaa-mm-dd’, {end_date}, ‘aaaa-mm-dd’);
the problem is that nothnig is displayed, I mean the diff_date is still blank
please advise
thanks in advance