wie kann man das Alter aus aktuellem Datum und Geburtsdatum berechnen?

  • Guenter Hennersdorf
    Gefragt am 13. März 2024 um 13:10

    wie kann man das Alter aus aktuellem Datum und Geburtsdatum berechnen?

  • Ylli Jotform Support
    Geantwortet am 13. März 2024 um 13:23

    Hello Guenter,

    Thanks for reaching out to Jotform Support. Unfortunately, our German Support agents are busy helping other Jotform users at the moment. 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 German, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.

    Now, let me help you with your question. You can calculate an age by birthday adding to your existing form the following Form Elements and a Form Calculation widget:

    1. Add a Date Picker and then set the Default Date to "CURRENT". You can either hide or show this field - if you decide to hide it (recommended), you can do that under the Advanced option.

    1598195565datepicker1 Screenshot 10 Screenshot 10

    2. Add a second Date Picker, and leave the Default Date at "NONE" and under the "Limits" you can set it to only accept past dates, given that it's going to be a birthday.

    1598195837datepicker23 Screenshot 21 Screenshot 21

     3. Add a Form Calculation Widget and under Widget Settings enter the following code then Save:

    1598196379datepicker5 Screenshot 32 Screenshot 32

    Give it a try and let us know it goes.