フォーム計算: 誕生日から年齢を何歳何ヶ月で表示する方法

  • Profile Image
    ragubihiro
    2025年11月8日 12:28に質問

    フォームの中で、今日の日付と、誕生日から年齢を何歳何ヶ月と表示させたい。

    AIに尋ねるとできると返答があるが、指示された関数がどこにあるのかわからない。

    また、&などの文字も文字列として認識さえれ計算してくれない。

    どのように設定をすれば、年齢を表示させられるか教えて欲しい

  • Profile Image
    Adrian Besilla Jotform Support
    2025年11月8日 17:58に返信

    Hi 高橋宏和,

    Thanks for reaching out to Jotform Support. Our Japanese 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 Japanese, 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 set up your form to automatically calculate Age. Let me show you how:

    1. Open your form in Form Builder and click on Add Element on the upper-left side of the page.

    2. Under the Basic tab, click on the Date Picker element twice.

    3. Click on the first Date Picker field, and click on the Gear icon to open Date Properties.

    4. In the menu on the right side of the page, click on the Options tab, then click on Current under Default Date.

    
フォーム計算: 誕生日から年齢を何歳何ヶ月で表示する方法
Image-1

    5. Click on the second Date Picker field, and then click on the Gear icon to open Date Properties.

    6. In the menu on the right side of the page, click on the Options tab, then click on Current under Default Date.

    7. Then, click on the Advanced tab, and toggle the Hide field to the On position.

    
フォーム計算: 誕生日から年齢を何歳何ヶ月で表示する方法
Image-2 Next, you'll need to add a Form Calculation widget:

    1. In Form Builder and click on Add Element on the upper-left side of the page.

    2. Click on the Widgets tab, click on the Form Calculation widget to add it to your form.

    
フォーム計算: 誕生日から年齢を何歳何ヶ月で表示する方法
Image-3

    3. Then, set the formula like you see below and click on Save.

    
フォーム計算: 誕生日から年齢を何歳何ヶ月で表示する方法
Image-4

    Give it a try and let us know if you have any other questions.

  • Profile Image
    ragubihiro
    2025年11月9日 4:04に返信

    お世話になっております。

    年齢と、月齢を表示させたいのですが、可能でしょうか。

    また、例えば、5歳4か月のような表示の仕方をしたいと考えています。

  • Profile Image
    Kris Ann Jotform Support
    2025年11月9日 8:18に返信

    Hi 高橋宏和,

    To meet your requirements, you will need to add multiple Form Calculation widgets. We will use seconds to calculate the year and months. Given that you already added the two Date Picker fields by following the steps shared by my colleague, now we will set the Form Calculation widgets. Let me show how to set that up:

    1. In Form Builder, click on the Add Element button, then go to Widgets tab.

    2. Add 5 Form Calculation widgets to your form.

    
フォーム計算: 誕生日から年齢を何歳何ヶ月で表示する方法
Image-1 3. Label the Form Calculation widgets the same as below:

    
フォーム計算: 誕生日から年齢を何歳何ヶ月で表示する方法
Image-24. Click on the Form Calculation widgets one by one.

    5. Then click on the Wand icon, to add a field click on the Add Field button.

    6. To add a Function, click on the Purple button.

    7. Make sure to click the Save button after to save the formulas.

    
フォーム計算: 誕生日から年齢を何歳何ヶ月で表示する方法
Image-3 8. Set the recommend formulas for each Form Calculation widgets:

    Epoch Diff:

    
フォーム計算: 誕生日から年齢を何歳何ヶ月で表示する方法
Image-4Month:

    
フォーム計算: 誕生日から年齢を何歳何ヶ月で表示する方法
Image-5Age Years:

    
フォーム計算: 誕生日から年齢を何歳何ヶ月で表示する方法
Image-6Age Months:

    
フォーム計算: 誕生日から年齢を何歳何ヶ月で表示する方法
Image-7

    Age:

    
フォーム計算: 誕生日から年齢を何歳何ヶ月で表示する方法
Image-8Check out the screencast below to see my results:

    
フォーム計算: 誕生日から年齢を何歳何ヶ月で表示する方法
Image-9

    You can hide the other fields that you don't want to show. You can test and check my form here, and you can also clone it.

    Let us know if there’s anything else we can help you with.