completepro1-1602803676 Posted June 24, 2021 at 05:11 PM Share Posted June 24, 2021 at 05:11 PM Hello Alejandro: I'm trying to implement some PHP code you shared to calculate someone's age from their date of birth. Below is the code; $bday = new DateTime($text); $today = new DateTime(); $diff = $today->diff($bday); return $diff->y; I have a field for the date of birth {jr_dateofbirth}. Do I need to create a banner field like {jr_age} to display the results? How do I format the code to make it work for the fields I am using? I hope I made sense in what I'm trying to acheive. Thanks Law Link to comment
Alejandro Posted June 24, 2021 at 05:26 PM Share Posted June 24, 2021 at 05:26 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
completepro1-1602803676 Posted June 24, 2021 at 06:02 PM Author Share Posted June 24, 2021 at 06:02 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
completepro1-1602803676 Posted June 24, 2021 at 06:50 PM Author Share Posted June 24, 2021 at 06:50 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted June 24, 2021 at 07:21 PM Share Posted June 24, 2021 at 07:21 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
completepro1-1602803676 Posted June 24, 2021 at 07:30 PM Author Share Posted June 24, 2021 at 07:30 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
completepro1-1602803676 Posted June 24, 2021 at 07:33 PM Author Share Posted June 24, 2021 at 07:33 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
completepro1-1602803676 Posted June 24, 2021 at 10:46 PM Author Share Posted June 24, 2021 at 10:46 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted June 24, 2021 at 11:44 PM Share Posted June 24, 2021 at 11:44 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.