Cómo calcular la edad de una persona según su fecha de nacimiento

  • Gestión Documental ROHI
    Asked on July 5, 2025 at 12:09 PM

    hola buen dia

    porfa me colaboran es que necesito que con la fecha de nacimiento me calcule la edad de la persona

  • Christian Ice JotForm Support
    Replied on July 5, 2025 at 1:42 PM

    Hi Gestión,

    Thanks for reaching out to Jotform Support. Our Spanish Support agents are busy helping other Jotform users right now, so I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in Spanish, let us know and we can have them do that. But, it might take a while until they're available again.

    Now, coming back to your question, you can use the Date Picker and a Number element and create a condition to calculate a person's age based on their date of birth. Let me show you how:

    1. In Form Builder, click on Add Element + on the left side of the page.
    2. Under the Basic tab, find and add 2 Date Picker and 1 Number elements into your form.
    3. Click on the Gear icon right next to the second Date Picker element to open its Properties.

      Cómo calcular la edad de una persona según su fecha de nacimiento Image 1 Screenshot 60
    4. Go to Options tab and set the Default Date to Current.

      Cómo calcular la edad de una persona según su fecha de nacimiento Image 2 Screenshot 71
    5. Then, click on Settings in the orange navigation bar at the top of the page.
    6. Select Conditions in the menu on the left side of the page and choose Update/Calculate Field.

      Cómo calcular la edad de una persona según su fecha de nacimiento Image 3 Screenshot 82
    7. Set up the conditions like shown below and click on Save.

      Cómo calcular la edad de una persona según su fecha de nacimiento Image 4 Screenshot 93

    Here's my result:

    Cómo calcular la edad de una persona según su fecha de nacimiento Image 5 Screenshot 104

    You can clone my demo form if you want to test it. We also have a guide on How to Insert Text or Calculation Into a Field Conditionally that you can check out.

    Give it a try and let us know how it goes.