Alex.1 Posted October 26, 2021 at 03:18 PM Share Posted October 26, 2021 at 03:18 PM Hi @Alejandro I have seen this already https://www.jreviews.com/docs/developers/custom-field-php-formatting#calc-age-based-on-birth-date and trying to adjust it in order to have a banner field jr_age where to calculate the age based on the birthday (jr_dob). In the PHP Output Format I have this: $bday = $CustomFields->fieldValue('jr_dob',$entry); $today = new DateTime(); $diff = $today->diff($bday); return $diff->y; In the Banner Code i have {jr_age} I have tried different variations as well but with no result... What am I doing wrong here? Thank you Link to comment
Alejandro Posted October 26, 2021 at 03:26 PM Share Posted October 26, 2021 at 03:26 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alex.1 Posted October 26, 2021 at 03:37 PM Author Share Posted October 26, 2021 at 03:37 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alex.1 Posted October 26, 2021 at 03:55 PM Author Share Posted October 26, 2021 at 03:55 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alex.1 Posted October 26, 2021 at 07:08 PM Author Share Posted October 26, 2021 at 07:08 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted October 26, 2021 at 07:22 PM Share Posted October 26, 2021 at 07:22 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alex.1 Posted October 26, 2021 at 08:37 PM Author Share Posted October 26, 2021 at 08:37 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted October 26, 2021 at 08:45 PM Share Posted October 26, 2021 at 08:45 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alex.1 Posted October 26, 2021 at 09:42 PM Author Share Posted October 26, 2021 at 09:42 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted October 26, 2021 at 10:50 PM Share Posted October 26, 2021 at 10:50 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts