Hi,
I want to updating age from date of birth after each updating, can you help me ?
I found this : calculate age in years simply
- First, preview of my form :
- Add Ajax event :
- So now, which code to use?
Thanks
Hi,
I want to updating age from date of birth after each updating, can you help me ?
I found this : calculate age in years simply
Thanks
Too simple !!
$today=date(‘Y-m-d’);
$differences = sc_date_dif_2 ({naissance}, “yyyy-mm-dd”, $today, “yyyy-mm-dd”, 2);
{age} = $differences[2];